Part Number Hot Search : 
265004 20D3G IRDC3476 265004 MAX41 DV718 ESDA1 IH20D
Product Description
Full Text Search
 

To Download XWM9705EFLRV Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 WM9705
Multimedia AC'97 CODEC with Integrated Touch Screen Controller
DESCRIPTION
The WM9705 is a high-quality stereo audio codec with an integrated touch screen controller. The audio section is compliant with the Intel AC'97 Rev 2.2 specification. It performs full-duplex 18-bit codec functions and supports variable sample rates from 8 to 48k samples/s with high signal to noise ratio. Optional AC'97 features include 3D sound enhancement, line-level outputs, stereo buffered headphone outputs, hardware sample rate conversion, primary/secondary mode operation and S/PDIF output. Headphone auto-detect, I2S output and headphone buffer on the mono output are included. Additionally, the WM9705 integrates a complete 4-wire touch screen controller, including on-chip screen drivers, pen-down detection feature, and pressure measurement capability. A 5-pin digital bi-directional AC-Link serial interface allows transfer of control data and DAC and ADC words to and from the AC'97 controller. The WM9705 is fully operable on 3V or 5V or mixed 3/5V supplies, and is packaged in the industry standard 48-pin TQFP package with 7mm body size, or in a smaller 7 x 7 x 0.9mm QFN.
FEATURES
* * * * * * * * * * * AC'97 rev2.2 compliant codec with pen digitiser 18-bit stereo audio codecs On-chip sample rate conversion Multiple channel input mixer S/PDIF digital audio output Headphone drivers on AUX and MONO outputs 4-wire touch screen interface with co-ordinate and pressure measurement, and pen-down detection Wake-up from sleep mode on pen down 3V to 5V operation Extensive power management features including hardware power down option Standard AC'97 pinout in 48-pin TQFP package or 48-pin QFN package.
APPLICATIONS
* * Personal Digital Assistants and `Smartphones' PocketPC systems
BLOCK DIAGRAM
DGND1 DVDD1 DGND2 DVDD2 CX3D1 CX3D2 HPGND HPVDD
LINEINVOL (Reg 10h) CDVOL (Reg 12h) MICVOL (Reg 0Eh)
MUX
ADCNDAC (Reg 5Ch) HPVOL (Reg 04h) M U X
16 / 32Ohm headphone HPOUTL HPOUTR HPGND
3D
MPM (Reg 5Ah) VID MIXVOL (Reg 72h) AUX
HPND (Reg 5Ch)
LINEINL LINEINR CDL CDGND CDR MIC2 MIC1
PHONE
M U X
RECORD GAIN (Reg 1Ch)
ADC L
DIGITAL FILTERS MODULATION
DAC L
MIC BOOST MIC SELECT (Reg 0Eh) (Reg 20h) M 0/20 U dB X M U X headset autodetect HPOUTL PHONE
VID AUX RECORD SELECT (Reg 1Ah)
ADC R
VARIABLE RATE AUDIO
DAC R
DACVOL (Reg 18h)
LINEOUTL LINEOUTR
POP (Reg 20h) MASTER VOL (Reg 02h) MIX (Reg 20h)
W
PCBEEP ADCSEL
(Reg 0Ah)
(Reg 0Ch) M U X
AUXADC BMON
SAR ADC
WM9705
PSEL (Reg 5Ch)
M U X MONO VOL (Reg 06h)
MONO_OUT (TX)
PEN DOWN
TOUCH PANEL SWITCH MATRIX CONTROL LOGIC
VID AUX
AC'97 INTERFACE
VREF
VREFOUT
CLOCK OSC
X+/AUXL
XTLOUT
X-/AUXR
Y+/VIDL
Y-/VIDR
PDRES AVDD1 AGND1
XTLIN
PENDET EAPD/BUSY MASK/LRC SPEN/I2S SPDIF CID
BITCLK SYNC SDATAIN SDATAOUT RESETB
PCBEEP
PHONE (RX)
24.576MHz
4-wire resistive touchpanel
WOLFSON MICROELECTRONICS plc www.wolfsonmicro.com
Production Data, December 2003, Rev 4.0
Copyright 2003 Wolfson Microelectronics plc
AGND2
VREF
AVDD2
CAP2
WM9705
Production Data
TABLE OF CONTENTS
DESCRIPTION ............................................................................................................1 FEATURES..................................................................................................................1 APPLICATIONS ..........................................................................................................1 BLOCK DIAGRAM ......................................................................................................1 TABLE OF CONTENTS ..............................................................................................2 ORDERING INFORMATION .......................................................................................4 ABSOLUTE MAXIMUM RATINGS..............................................................................4 RECOMMENDED OPERATING CONDITIONS ..........................................................5 PIN CONFIGURATION................................................................................................6 PIN DESCRIPTION .....................................................................................................7 ELECTRICAL CHARACTERISTICS ...........................................................................8 POWER CONSUMPTION .........................................................................................12 DETAILED TIMING DIAGRAMS ...............................................................................13
AC-LINK LOW POWER MODE .........................................................................................13 COLD RESET....................................................................................................................13 WARM RESET ..................................................................................................................14 CLOCK SPECIFICATIONS ...............................................................................................14 DATA SETUP AND HOLD (50PF EXTERNAL LOAD).......................................................15 SIGNAL RISE AND FALL TIMES ......................................................................................15
DEVICE DESCRIPTION............................................................................................16
INTRODUCTION ...............................................................................................................16 AC'97 FEATURES.............................................................................................................16 NON - AC'97 FEATURES..................................................................................................17 PEN DIGITIZER AND AUXILIARY ADC ............................................................................19 3-D STEREO ENHANCEMENT.........................................................................................19 VARIABLE SAMPLE RATE SUPPORT .............................................................................20 2 SPDIF OR I S DIGITAL AUDIO DATA OUTPUT...............................................................20 PRIMARY/SECONDARY ID SUPPORT ............................................................................21 HEADPHONE DRIVE AND HEADSET AUTODETECT .....................................................21 DATA SLOT MAPPING .....................................................................................................23 AC-LINK DIGITAL SERIAL INTERFACE PROTOCOL ......................................................23 AC-LINK AUDIO OUTPUT FRAME (SDATAOUT) ............................................................25 AC-LINK AUDIO INPUT FRAME (SDATAIN) ....................................................................27 AC-LINK LOW POWER MODE .........................................................................................29 WAKING UP THE AC-LINK...............................................................................................29 SERIAL INTERFACE REGISTER MAP DESCRIPTION....................................................30 REGISTER 28H - EXTENDED AUDIO ID.........................................................................34 REGISTER 2AH - EXTENDED AUDIO STATUS AND CONTROL REGISTER ................35 REGISTER 2CH AND 32H - AUDIO SAMPLE RATE CONTROL REGISTERS................35 REGISTERS 3AH - SPDIF CONTROL REGISTER ..........................................................36 VENDOR SPECIFIC REGISTERS (INDEX 5AH - 7AH) ....................................................36
SERIAL INTERFACE REGISTER MAP ....................................................................39
w
PD Rev 4.0 December 2003 2
WM9705
Production Data
PEN DIGITISER OPERATION ..................................................................................40
TIMING OF PEN DIGITISER OPERATIONS.....................................................................41 CONTROL OF PEN DIGITISER FUNCTIONS ..................................................................41 READBACK OF PEN DIGITISER RESULTS.....................................................................42 CONVERSION CONTROL ................................................................................................43 PRESSURE MEASUREMENT ..........................................................................................48 MASK FUNCTION .............................................................................................................49 STANDBY OPERATION AND WAKE-UP..........................................................................50 AUXILIARY CONVERSIONS.............................................................................................51
PACKAGE DIMENSIONS - TQFP.............................................................................53 PACKAGE DIMENSIONS - QFN...............................................................................54 IMPORTANT NOTICE ...............................................................................................55
ADDRESS: ........................................................................................................................55
w
PD Rev 4.0 December 2003 3
WM9705
Production Data
ORDERING INFORMATION
DEVICE XWM9705EFT/V WM9705SEFT/V XWM9705EFT/RV WM9705SEFT/RV TEMP. RANGE -25 to 85oC -25 to 85 C -25 to 85oC -25 to 85oC
o
PACKAGE 48-pin TQFP 48-pin TQFP (lead free) 48-pin TQFP (tape and reel) 48-pin TQFP (lead free, tape and reel)
MOISTURE SENSITIVITY LEVEL MSL1 MSL1 MSL1 MSL1
DEVICE XWM9705EFL/V WM9705SEFL/V XWM9705EFL/RV WM9705SEFL/RV Note: Reel quantity = 2,200
TEMP. RANGE -25 to 85oC -25 to 85 C -25 to 85oC -25 to 85oC
o
PACKAGE 48-pin QFN 48-pin QFN (lead free) 48-pin QFN (tape and reel) 48-pin QFN (lead free, tape and reel)
MOISTURE SENSITIVITY LEVEL MSL3 MSL3 MSL3 MSL3
ABSOLUTE MAXIMUM RATINGS
Absolute Maximum Ratings are stress ratings only. Permanent damage to the device may be caused by continuously operating at or beyond these limits. Device functional operating limits and guaranteed performance specifications are given under Electrical Characteristics at the test conditions specified. ESD Sensitive Device. This device is manufactured on a CMOS process. It is therefore generically susceptible to damage from excessive static voltages. Proper ESD precautions must be taken during handling and storage of this device. Wolfson tests its package types according to IPC/JEDEC J-STD-020B for Moisture Sensitivity to determine acceptable storage conditions prior to surface mount assembly. These levels are: MSL1 = unlimited floor life at <30C / 85% Relative Humidity. Not normally stored in moisture barrier bag. MSL2 = out of bag storage for 1 year at <30C / 60% Relative Humidity. Supplied in moisture barrier bag. MSL3 = out of bag storage for 168 hours at <30C / 60% Relative Humidity. Supplied in moisture barrier bag. The Moisture Sensitivity Level for each package type is specified in Ordering Information. Note: The TQFP version is classified as MSL1 and does not require to be drybagged but will be supplied as such, labelled as MSL1.
CONDITION Digital supply voltage Analogue supply voltage Voltage range digital inputs Voltage range analogue inputs Operating temperature range, TA Storage temperature after soldering Package body temperature (soldering 10 seconds) Package body temperature (soldering 2 minutes)
MIN -0.3V -0.3V DVSS -0.3V AVDD -0.3V -25 C -65oC
o
MAX +7V +7V DVDD +0.3V AVDD +0.3V +85oC +150oC +240 C +183oC
o
w
PD Rev 4.0 December 2003 4
WM9705
Production Data
RECOMMENDED OPERATING CONDITIONS
PARAMETER Digital supply range Analogue supply range Digital ground Analogue ground Difference AGND to DGND - Note 1 Difference AVDD to DVDD - Note 2 Note: 1. AGND is normally the same as DGND and HPGND 2. AVDD should be greater than or equal to DVDD SYMBOL DVDD1, DVDD2 AVDD1, AVDD2 DGND1, DGND2 AGND1, AGND2, HPGND -0.3 -0.3 TEST CONDITIONS MIN 2.7 2.7 0 0 0 +0.3 5.5 TYP MAX 5.5 5.5 UNIT V V V V V V
w
PD Rev 4.0 December 2003 5
WM9705
Production Data
PIN CONFIGURATION
MASK/LRC MONOOUT 37 36 35 34 33 32 31 30 29 28 27 26 25 13 14 15 16 17 18 19 20 21 22 23 24 LINEOUTR LINEOUTL CX3D2 CX3D1 CAP2 BMON AUXADC PDRES VREFOUT VREF AGND1 AVDD1 SPEN/I2S HPOUTR HPOUTL 39 PENDET HPGND AGND2 AVDD2 38 LINEINL EAPD/ BUSY SPDIF CID0 45
48 DVDD1 XTLIN XTLOUT DGND1 SDATAOUT BITCLK DGND2 SDATAIN DVDD2 SYNC RESETB PCBEEP 1 2 3 4 5 6 7 8 9 10 11 12
47
46
44
43
42
41
40
X+/AUXL
X-/AUXR
Y+/VIDL
Y-/VIDR
CDGND
CDR
Figure 1 TQFP Pinout
EAPD / BUSY MASK / LRC MONOOUT 37 36 35 34 33 32 31 30 29 28 27 26 25 13 PHONE 14 X+ / AUXL 15 16 X- / AUXR Y+ / VIDL 17 18 CDL Y- / VIDR 19 CDGND 20 21 MIC1 CDR 22 MIC2 23 LINEINL 24 LINEINR LINEOUTR LINEOUTL CX3D2 CX3D1 CAP2 BMON AUXADC PDRES VREFOUT VREF AGND1 AVDD1 SPEN / I2S
HPOUTR
PENDET
HPOUTL
HPGND
AGND2
48 DVDD1 XTLIN XTLOUT DGND1 SDATAOUT BITCLK DGND2 SDATAIN DVDD2 SYNC RESETB PCBEEP 1 2 3 4 5 6 7 8 9 10 11 12
47
46 45
44 43
42
41 40
39
38
Figure 2 QFN Pinout
AVDD2
SPDIF
CID0
LINEINR
PHONE
CDL
MIC1
MIC2
w
PD Rev 4.0 December 2003 6
WM9705
Production Data
PIN DESCRIPTION
PIN 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 48 PIN QFN DVDD1 XTLIN XTLOUT DGND1 SDATAOUT BITCLK DGND2 SDATAIN DVDD2 SYNC RESETB PCBEEP PHONE X+/AUXL X-/AUXR Y+/VIDL Y-/VIDR CDL CDGND CDR MIC1 MIC2 LINEINL LINEINR AVDD1 AGND1 VREF VREFOUT PDRES AUXADC BMON CAP2 CX3D1 CX3D2 LINEOUTL LINEOUTR MONOOUT AVDD2 HPOUTL HPGND HPOUTR AGND2 MASK/LRC SPEN/I2S CID0 PENDET EAPD/BUSY SPDIF 48 PIN TQFP DVDD1 XTLIN XTLOUT DGND1 SDATAOUT BITCLK DGND2 SDATAIN DVDD2 SYNC RESETB PCBEEP PHONE X+/AUXL X-/AUXR Y+/VIDL Y-/VIDR CDL CDGND CDR MIC1 MIC2 LINEINL LINEINR AVDD1 AGND1 VREF VREFOUT PDRES AUXADC BMON CAP2 CX3D1 CX3D2 LINEOUTL LINEOUTR MONOOUT AVDD2 HPOUTL HPGND HPOUTR AGND2 MASK/LRC SPEN/I2S CID0 PENDET EAPD/BUSY SPDIF Supply Digital input Digital output Supply Digital input Digital output Digital input Supply Digital output Supply Digital input Digital input Analogue input Analogue input Analogue I/O Analogue I/O Analogue I/O Analogue I/O Analogue input Analogue input Analogue input Analogue input Analogue input Analogue input Analogue input Supply Supply Analogue output Analogue output Analogue input Analogue input Analogue input Analogue I/O Analogue output Analogue input Analogue output Analogue output Analogue output Supply Analogue output Supply Analogue output Supply Digital bidir Digital bidir Digital input Digital output Digital output Digital output TYPE Digital positive supply Clock crystal connection or clock input (XTAL not used) Clock crystal connection Digital ground supply Serial data input Serial interface clock output to AC'97 controller or input from AC'97 primary codec Digital ground supply Serial data output to AC'97 controller Digital positive supply Serial interface sync pulse from AC'97 controller NOT reset input (active low, resets registers) Mixer input, typically for PCBEEP signal (also input to AUX ADC) PHONE input (also input to AUX ADC) Pen X+ channel screen driver/input. (or AUXL mixer input) Pen X- channel screen driver/input (or AUXR mixer input) Pen Y+ channel screen driver/input (or VIDL mixer input) Pen Y- channel screen driver/input (or VIDR mixer input) Mixer input, typically for CD signal CD input common mode reference (ground) Mixer input, typically for CD signal Mixer input with extra gain if required - also HSET detect input Mixer input with extra gain if required Mixer input, typically for LINE signal Mixer input, typically for LINE signal Analogue positive supply for screen drivers Analogue ground supply for screen drivers Internal reference (buffered CAP2) Reference for microphones (buffered CAP2) Pen Down Detect Pull-up external resistor connection AUX signal input to digitiser ADC Battery input to ADC Reference input/output; pulls to midrail if not overdriven Output pin for 3D difference signal Input pin for 3D difference signal Main analogue output for left channel Main analogue output for right channel Main mono output Analogue positive supply Left channel line level output (or headphone, or headset mic input) Headphone ground supply Right channel line level output (or headphone) Analogue ground supply MASK input signal to delay PEN conversions (or LRCLK output) SPDIF hardware enable pin and I2S data output Primary/Secondary ID select (internal pull-up) Hi = Primary Pen Down Detection flag OR Headset detect output External amplifier powerdown or BUSY output flag from Pen ADC S/PDIF output DESCRIPTION
w
PD Rev 4.0 December 2003 7
WM9705
Production Data
ELECTRICAL CHARACTERISTICS
Test Characteristics: AVDD = 3.3V, DVDD = 3.3V, 48kHz audio sampling, TA = 25oC, unless otherwise stated. PARAMETER Digital Logic Levels (DVDD = 3.3V) Input LOW level Input HIGH level Output LOW Output HIGH Input level Output level to LINEOUT L,R Output level to HPOUT L, HPOUTR and MONOOUT Reference Levels Reference input/output CAP2 impedance Mixer reference MIC reference MIDBUFF current source (pins VREF and VREFOUT) MIDBUFF current sink (pins VREF and VREFOUT) AUDIO DAC to Line-out (10k load) SNR A-weighted (Note 2) Full scale output voltage Total Harmonic Distortion + Noise PSRR AUDIO ADC ADC input for full scale output Signal to Noise Ratio A-weighted (Note 2) Total Harmonic Distortion+Noise Power Supply Rejection Ratio Digital Filter Characteristics Frequency response Transition band Stop band Stop band attenuation ADC DAC 20 19,200 28,800 -74 -40 19,200 28,800 Hz Hz Hz dB SNR THD+N PSRR -6dBfs input 20 to 20kHz, without supply decoupling VREF = 1.65V 80 0.7 86 -79 -40 -72 Vrms dBfs dB dB THD+N VREF = 1.65V -3dBfs input 20 to 20kHz, without supply decoupling 85 91 0.7 -84 0.006 -40 -74 0.02 dB Vrms dB % dB VREF VREFOUT AVDD = 3.3V AVDD = 3.3V 5 -5 CAP2 0.47 AVDD 0.50 AVDD 75 Buffered CAP2 Buffered CAP2 10 -10 0.53 AVDD V k V V mA mA VIL VIH VOL VOH I Load = 2mA I Load = -2mA Minimum input impedance = 10k Into 10k load Into 16 load 0.90 x DVDD AGND -100mV AGND +300mV AGND +300mV AVDD +100mV AVDD -300mV AVDD -300mV DGND - 0.3 2.2 0.8 DVDD + 0.3 0.10 x DVDD V V V V V V V SYMBOL TEST CONDITIONS MIN TYP MAX UNIT
Analogue Audio I/O Levels (Input Signals on any audio inputs, Outputs on LINEOUT L, R and MONO and HPOUT L,R)
Near rail to rail Near rail to rail
w
PD Rev 4.0 December 2003 8
WM9705
Test Characteristics: AVDD = 3.3V, DVDD = 3.3V, 48kHz audio sampling, TA = 25oC, unless otherwise stated. PARAMETER Maximum input voltage Maximum output voltage Signal to Noise Ratio A-weighted (Note 2) Total Harmonic Distortion + Noise -1dBfs input SNR THD+N on LINEOUT CD inputs Other inputs CD and LINE inputs PHONE input MIC1 input MIC2 input PCBEEP input Input impedance (CD inputs) Input impedance (other mixer inputs) At any gain 10 50 10 55 90 82 SYMBOL TEST CONDITIONS MIN AGND TYP 0.7 0.7 92 93 -87 0.0044 -82 0.008 -82 0.008 -90 0.003 -78 0.013 15 20 100 20 100 -40 -77 0.014 -71 0.028 -71 0.028 -71 0.028 -67 0.045 MAX AVDD
Production Data
UNIT Vrms Vrms dB dB %
Mixer Inputs to Line-out (10k load)
k k k k k dB
At max gain At 0db gain Input impedance MIC inputs At max gain At 0db gain Power Supply Rejection Ratio PSRR 20 to 20kHz, without supply decoupling Headphone Buffer (pins HPOUTL, HPOUR and MONOOUT) Maximum output voltage Max Output Power (Note 1) SNR (Note 2) Total Harmonic Distortion + Noise THD+N PO RL = 32 RL = 16 A-weighted 1kHz, RL = 32 @ PO = 10mW rms 1kHz, RL = 32@ PO = 20mW rms 1kHz, RL = 16 @ PO = 10mW rms 1kHz, RL = 16@ PO = 20mW rms 20 to 20kHz, without supply decoupling
85
0.7 30 40 92 -80 0.01 -77 0.014 -76dB 0.016 -75dB 0.018 -40
Vrms mW mW dB dB % dB % dB % dB % dB
Power Supply Rejection Ratio Clocks Crystal clock BITCLK frequency SYNC frequency
PSRR
24.576 12.288 48.0
MHz MHz KHz
w
PD Rev 4.0 December 2003 9
WM9705
Test Characteristics: AVDD = 3.3V, DVDD = 3.3V, MCLK = 24.576MHz, TA = 25oC, unless otherwise stated. PARAMETER PEN and AUXILIARY INPUT ADC Resolution Differential non-linearity error Integral non-linearity error Offset error Gain error Noise Conversion time Acquisition time Throughput rate Multiplexer settling time ADC positive reference X conversion Y conversion auxiliary conversion X conversion Y conversion auxiliary conversion AGND1 +/-0.5 AGND1 at sampling time 93.75Hz sample rate 30 7.7 1/3 AVDD Positive input Negative input AVDD 0 5 +/-0.5 20 PIL = 0 PIL = 1 1 PDDACR PDDACLSB 0.1 0.1 200 400 10 6.5V 500 X+ pin Y+ pin AVDD1 X- pin Y- pin AGND1 2 DNL INL 12 +/-0.25 +/-2 +/-4 +/-4 500 20.8 15 48 SYMBOL TEST CONDITIONS MIN TYP MAX
Production Data
UNIT Bits LSB LSB LSB LSB Vrms sec sec kHz nsec V
ADC negative reference
V
ADC sampling capacitance AUXADC input range (fullscale) AUXADC input leakage current BMON input range BMON input impedance BMON effective input impedance (Note 3) BMON input gain PEN INTERFACE Full scale input range Absolute input range Capacitance Leakage current Screen switch on resistance Pressure measurement current External Pen-detect pull up resistor value Pen Detect Comparator Threshold DAC Range Pen Detect Comparator Threshold DAC step size
pF AVDD1 A k M
V V pF A A 100 1.65 k V V
Note: 1. Harmonic distortion on the headphone output decreases with output power - see Figure 3. 2. SNR is the ratio of 0dB signal amplitude to noise floor with no signal present (all 0s input code to DACs). 3. The input impedance of the BMON input is 30k to ground when the ADC is sampling and hi-Z when it is not. The effective input resistance is calculated dependant on how often the battery is sampled by the user. 7.7M is the effective impedance if the battery is sampled once every 512 frames. For a fuller description of this and information on how to calculate the effect input impedance please see the section on auxiliary conversions on pages 46. 4. ADC sampling capacitance allows the user to calculate the minimum external capacitance required for a stable ADC value.
w
PD Rev 4.0 December 2003 10
WM9705
Production Data
-100 -90 -80 THD+Noise (dB) -70 -60 -50 -40 Output Power (mW) -30 0 5 10 15 20 25 30
Figure 3 Distortion Versus Power on Headphone Outputs, using 32 Load and AVDD = HPVDD = 3.3V
w
PD Rev 4.0 December 2003 11
WM9705
Production Data
POWER CONSUMPTION
DIGITISER PD REG 78H (PRP) RECORD MUX
MODE DESCRIPTION
EAPD PR0 PR1 PR2 PR3 PR5 PR4 PR6
CURRENT CONSUMPTION
AVDD (mA
DVDD (mA)
TOTAL POWER (mW)
Record and Playback Mic Record (note 1) Other Input Record Other Input Record PR6 Other Input Record PR6 and PR2 Other Input Record PR6 and PR3 Playback Only Low Power Playback (note 2) Playback Only Playback Only PR6 Playback Only PR6 and PR2 Playback Only PR6 and PR3 Record Only Mic Record (note 1) Other Input Record Other Input Record PR6 Other Input Record PR6 and PR2 Other Input Record PR6 and PR3 Power Down Power Down (note 3) Pen Digitiser Pen Digitiser (Note 4) 1 1 1 1 0 1 1 X 11 XXXL XXXR 0.1 3.6 12.2 1 1 1 1 1 1 1 X 00 XXXL XXXR 0.0001 0.002 0.007 0 0 0 0 0 1 1 1 1 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 X X X X X 00 00 00 00 00 000L 000R 100L 100R 100L 100R 100L 100R 100L 100R 12.9 15.8 14.3 7.2 0.3 13.3 13.3 11.3 13.3 12.9 86.5 96 84.5 67.7 43.6 1 1 1 1 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 X X X X X 00 00 00 00 00 001L 001R 001L 001R 001L 001R 001L 001R 001L 001R 5.5 11.1 9.7 4.0 0.4 11.5 11.5 11.5 11.5 11.5 56.1 74.6 70 51.2 39.3 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 X X X X X 00 00 00 00 00 000L 000R 001L 001R 001L 001R 001L 001R 001L 001R 14.8 17.7 16.3 10.7 0.5 14.3 14.3 14.3 14.3 14.1 96 105.6 101 82.5 48.2
Notes: 1. When the ADC input mux is set to mic input to BOTH ADC channels, (SR2-0 and SL2-0 both set to `0'), one ADC is shared between both channels and the other is powered off to save current. The same digital data is output to both slots. 2. The POP bit (reg 20h) also needs to be set for this mode. 3. These values are recorded with no external clocks applied to the WM9705. 4. Pen active duty cycle is approximately 10%. Average analogue current consumption is approximately 10% of stated figure.
w
PD Rev 4.0 December 2003 12
WM9705
Production Data
DETAILED TIMING DIAGRAMS
Test Characteristics: o o AVDD = 3.3V, DVDD = 3.3V, AGND = 0V ..............TA = 0 C to +70 C, unless otherwise stated.
All measurements are taken at 10% to 90% DVDD, unless otherwise stated. All the following timing information is guaranteed, not tested.
AC-LINK LOW POWER MODE
SLOT 1 SYNC
SLOT 2
BITCLK
SDATAOUT
WRITE TO 0X20
DATA PR4
DON'T CARE
tS2_PDOWN SDATAIN
Figure 4 AC-Link Powerdown Timing PARAMETER End of slot 2 to BITCLK SDATAIN low SYMBOL tS2_PDOWN MIN TYP MAX 1.0 UNIT
s
COLD RESET
tRST_LOW RESETB tRST2CLK
BITCLK
Figure 5 Cold Reset Timing Note: For correct operation SDATAOUT and SYNC must be held LOW for entire RESETB active low period otherwise the device may enter test mode. See AC'97 specification or Wolfson applications note WAN104 for more details. PARAMETER RESETB active low pulse width RESETB inactive to BITCLK startup delay SYMBOL tRST_LOW tRST2CLK MIN 1.0 162.8 TYP MAX UNIT
s
ns
w
PD Rev 4.0 December 2003 13
WM9705 WARM RESET
tSYNC_HIGH SYNC tSYNC2CLK
Production Data
BITCLK
Figure 6 Warm Reset Timing PARAMETER SYNC active high pulse width SYNC inactive to BITCLK startup delay SYMBOL tSYNC_HIGH tSYNC2CLK 162.4 MIN TYP 1.3 MAX UNIT
s
ns
CLOCK SPECIFICATIONS
tCLK_HIGH BITCLK tCLK_PERIOD tSYNC_HIGH SYNC tSYNC_PERIOD tSYNC_LOW tCLK_LOW
Figure 7 Clock Specifications (50pF External Load) PARAMETER BITCLK frequency BITCLK period BITCLK output jitter BITCLK high pulse width (Note 1) BITCLK low pulse width (Note 1) SYNC frequency SYNC period SYNC high pulse width SYNC low pulse width tSYNC_PERIOD tSYNC_HIGH tSYNC_LOW tCLK_HIGH tCLK_LOW 36 36 40.7 40.7 48.0 20.8 1.3 19.5 tCLK_PERIOD SYMBOL MIN TYP 12.288 81.4 750 45 45 MAX UNIT MHz ns ps ns ns kHz
s s s
Note: Worst case duty cycle restricted to 45/55.
w
PD Rev 4.0 December 2003 14
WM9705 DATA SETUP AND HOLD (50PF EXTERNAL LOAD)
tSETUP BITCLK tHOLD SDATAIN SDATAOUT tSETUP SYNC tHOLD
Production Data
Figure 8 Data Setup and Hold (50pF External Load) Note: Setup and hold time parameters for SDATAIN are with respect to AC'97 Controller. PARAMETER Setup to falling edge of BITCLK Hold from falling edge of BITCLK SYMBOL tSETUP tHOLD MIN 10 10 TYP MAX UNIT ns ns
SIGNAL RISE AND FALL TIMES
triseCLK BITCLK triseSYNC SYNC triseDIN SDATAIN triseDOUT SDATAOUT tfallDOUT tfallDIN tfallSYNC tfallCLK
Figure 9 Signal Rise and Fall Times (50pF External Load)
PARAMETER BITCLK rise time BITCLK fall time SYNC rise time SYNC fall time SDATAIN rise time SDATAIN fall time SDATAOUT rise time SDATAOUT fall time
SYMBOL triseCLK tfallCLK triseSYNC tfallSYNC triseDIN tfallDIN triseDOUT tfallDOUT
MIN 2 2 2 2 2 2 2 2
TYP
MAX 6 6 6 6 6 6 6 6
UNIT ns ns ns ns ns ns ns ns
w
PD Rev 4.0 December 2003 15
WM9705
Production Data
DEVICE DESCRIPTION
INTRODUCTION
This specification describes the WM9705 audio codec, which is designed to be software and hardware compatible with the Intel AC'97 rev2.2 component specification. The device is a derivative of the basic AC'97 codec, with added support for resistive touch-screen pen inputs. Variable Rate Audio (VRA) is supported at rates defined in the Intel rev2.1 or rev2.2 specification, and a SPDIF output port is provided which may optionally be used to output the PCM DAC information to external processors. A key feature of operation of the pen digitiser function is the cessation of screen drive activity when the pen is lifted from the screen, so minimising audio performance degradation and reducing power consumption. WM9705 offers the following features: Stereo Audio Codec with Intel specified VRA support of different audio sample rates Pen Digitiser function with 4-wire pen interface and support for pen-down detection, pen pressure measurement and wake-on-pen-down. Auxiliary ADC inputs for temperature, supply and battery monitoring. Pen-down flag and ADC BUSY flags, output to pins, and MASK input pin provided to allow delay of pen conversions in event of LCD activity Optional SPDIF and I S audio outputs (SPDIF output may be hardware enabled so needing no driver support) Headphone drive capability and optional auto detection of headset or headphone plug in It is highly recommended that the Intel AC'97 rev2.2 specification be studied in parallel with this document: This specification can be downloaded from the Intel web site. The WM9705 is fully operable on 3V or 5V or mixed 3/5V supplies, and is packaged in the industry standard 48pin TQFP package with 7mm body size. Figure 10 shows the functional block diagram including control register bit locations for WM9705.
2
AC'97 FEATURES
WM9705 implements the base set of AC'97 rev2.2 features, plus several enhancements: All rev2.2 specified variable audio sample rates supported 3-D stereo enhancement feature. Headphone support on AUX outputs (pins 39,41) Primary/secondary codec operation by pin programming of CID0 pin SPDIF audio output with rev2.2 compliant control set.
w
PD Rev 4.0 December 2003 16
WM9705 NON - AC'97 FEATURES
In addition to the AC'97 features offered, WM9705 also supports:
Production Data
4-wire pen digitiser with integrated screen driver, featuring highly flexible modes of operation, supporting autonomous screen conversions, and auxiliary conversions. Screen X and Y connections driven from AUX and VID stereo input pins, which are still connected. Headphone drive capability on MONO output, with extra signal routing switch PSEL, allowing PHONE input to be routed to MONO output Extra switch HPND after the mixer allowing MIX without DAC signal to be output to headphone outputs, and so allowing DAC with no MIX to be output to LINE outputs. I2S audio output capability, in addition to SPDIF output, allowing support of an extra external audio DAC for multi-channel solutions. SPDIF output may be hardware enabled. Option to route the stereo audio ADC output to the SPDIF and/or I2S digital outputs Auto-detect of headphones or headset plugged into the AUX headphone outputs, with internal routing of microphone signal from the headphone pin to the MIC1 input. Battery monitoring input BMON that supports direct connection to battery voltages up to 6.5V. MPM switch allowing mix of DAC + mixer output onto MONOUT and independent mix of DAC + PHONE and/or PCBEEP onto LINEOUT or HPOUT. Reset powerdown override - holding MASK high in reset overrides the PR bits forcing the WM9705 into a low power mode
w
PD Rev 4.0 December 2003 17
CX3D1 CX3D2 (33) (47) EAPD/BUSY CID (45) (Prim/Sec) (34) (6) (10) (8) (5) (11) (1) (9) (4) (7)
SDATAOUT BITCLK SYNCH SDATAIN RESETB DVDD1&2 DGND1&2
DACCLK Serial Interface
2 x 18 bit
WM9705
DAC PCM Data LPBK (5Ch) DAC (reg 20h) PENDET (46) SPDIF (48) SPEN/I2S (44) MASK/LRC (43)
Digital Sigma Delta Modulators Variable Rate Audio Support
SPEN, ADCO & I2S
DAC Interpolation Filters
AUDIO DAC PGA
1
w
ADC ADC PCM DATA PGA Reg 18h POP (20h)
0
DACREF ENHANCE Reg 22h AUDIO MIXER PGA ADCCLK AUDIO VOLUME MPM L R (5Ah) PGA Reg 02h (typ) HP VOLUME PGA Reg 04h (typ) PGA Reg 72h
Figure 10 Functional Block Diagram
WM '3-D' RIGHT AUDIO
Multibit DAC and Filter DACR AUDIO DACs Multibit DAC and Filter DACL ADC Decimation filters
LEFT AUDIO
LINEOUTL (35) HPB (74h) PR6 OR HSDT HEADPHONE BUFFERS PR6 HPOUTL (39) HPOUTR (41) HPGND (40) LINEOUTR (36)
WM9705 AC97 rev2.2 Codec with pen input
1 0 0
CDL (18) PGA Reg 12h HPND (5Ch)
1
Reg 16h b15
Reg 14h b15
CDGND (19)
ADCNDAC (5Ch)
CDR (20)
LINEINL (23)
PGA Reg 10h
MONOOUT (37)
LINEINR (24)
Mono Mux MONO VOLUME PGA HEADPHONE Reg 06h BUFFER MHPZ (5Ch) MIX (20h) PSEL(5Ch) L R ADCREF ADC PGA PGA Reg 1Ch
Pen inputs X+/AUXL (14)
X-/AUXR (15) PEN INPUT and AUXILIARY ADC Input Mux PEN Digitiser State Control machine
screen switches
Y+/VIDL (16)
Y-/VIDR (17)
screen supplies
Analogue Sigma Delta Modulator
RECORD MUX Reg 1Ah ADCCLK
PDRES (29)
AUXADC (30)
To output slot of AC link or register 7Ah
BMON (31) PEN Function Control registers 76h & 78h PGA Reg 0Ch
PHIZ
AVDD1 (25)
Analogue Sigma Delta Modulator
PR0 ADC EN PR1 DAC EN
AGND1 (26)
PHONE (13)
POWER PGA Reg 0Ah
PHIZ
PR2 MIX EN ENABLE reg 26h & reg 78h PR3 REF EN PR4 LNK EN PR5 CLK EN PR6 HP EN EAPD ADCCLK DACCLK CLOCK GENERATOR XTLIN (2) XTLOUT (3) AVDD2 (38)
PCBEEP(12) HPOUTL
1 0 0 1
5mA
HSDT
VMID
MS (20h) Mic +20dB Mux
20dB (0Eh)
MIC1 (21)
MPUE
HS COMP
HSEN
HSCP
PGA Reg 0Eh
PRP
MIXREF DACREF ADCREF
AGND2 (42)
MIC2 (22)
Production Data
PD Rev 4.0 December 2003
18
CAP2 (32) VREFOUT (28) VREF (27)
WM9705 PEN DIGITIZER AND AUXILIARY ADC
Production Data
A 4 wire input pen digitiser function is included on WM9705. This circuit comprises driver circuits to drive typical resistive touch screens of the type used on PDA's, plus a 12 bit resolution ADC to convert pen input values. This ADC may also be used to perform additional auxiliary ADC conversions of the levels present on the AUXADC, BMON, PCBEEP or PHONE pins. A control bit (PHIZ in register 78h) is provided to allow PCBEEP and PHONE inputs to be made high impedance (internally disconnected so signal paths are cut) if required. Operation of the pen digitiser function is controlled from digitiser control registers 76h and 78h. The ADC conversion result is obtained by reading from the contents of bits [11-0] in register 7Ah, or optionally by enabling the AC link SLOT transfer method, when results are sent back in the AC'97 slot data format. The pen digitiser ADC is a 12bit successive approximation type converter with excellent differential non-linearity performance. The pen digitiser ADC may be used to convert either pen input data, or the voltages present on the AUXADC, BMON, PCBEEP or PHONE pins. Such functions as battery monitoring or temperature measurement might therefore be implemented. The following pen digitiser features are available: Support for wake-on-pen-down Pen down detection, pressure measurement, auxiliary conversions MASK conversion delay override or synchronous operation option SLOT or R/W register data transfer Programmable screen drive to sample taken delay Programmable Pen-down detection threshold Details of pen digitiser operation are available in the Pen Digitiser description section. Note that the pins allocated for X/Y screen connections are those that would normally be used for AUX and VID stereo inputs in a conventional AC '97 codec. In WM9705 these pins remain connected to the MIXER and ADC inputs, and may be used as analogue inputs, with the restriction that gain through the mixer input is fixed at 0dB. The normal MUTE function is provided using bit 15 in the appropriate register. It is recommended that these MUTE bits are left `mute' whenever the screen is driven. Reading back the registers will report 0dB gain, and the MUTE value as programmed. ADC gain control on the AUX and VID inputs works as normal.
3-D STEREO ENHANCEMENT
This device contains a stereo enhancement circuit, designed to optimise the listening experience when the device is used in a typical PC operating environment. That is, with a pair of speakers placed either side of the monitor with little spatial separation. This circuit creates a difference signal by differencing left and right channel playback data, then filters this difference signal using lowpass and highpass filters whose time constants are set using external capacitors connected to the CX3D pins 33 and 34. Typically the values of 100nF and 47nF set highpass and lowpass poles at about 100Hz and 1kHz respectively. This frequency band corresponds to the range over which the ear is most sensitive to directional effects. The filtered difference signal is gain adjusted by an amount set using the 4-bit value written to Register 22h bits 3 to 0. Value 0h is disable, value Fh is maximum effect. Typically a value of 8h is optimum. The user interface would most typically use a slider type of control to allow the user to adjust the level of enhancement to suit the program material. Bit D13 3D in Register 20h is the overall 3D enable bit. The Reset Register 00h reads back the value 11000 in bits D14 to D10. This corresponds to decimal 24, which is registered with Intel as Wolfson Stereo Enhancement. Note that the external capacitors setting the filtering poles applied to the difference signal may be adjusted in value, or even replaced with a direct connection between the pins. If such adjustments are made, then the amount of difference signal fed back into the main signal paths may be significant, and can cause large signals which may limit, distort, or overdrive signal paths or speakers. Adjust these values with care, to select the preferred acoustic effect. There is no provision for pseudo-stereo effects. Mono signals will have no enhancement applied (if the signals are in phase and of the same amplitude). Signals from the PCM DAC channels can have stereo
w
PD Rev 4.0 December 2003 19
WM9705
Production Data enhancement applied. It can also be bypassed if desired. This function is enabled by setting the bit POP in Register 20h.
VARIABLE SAMPLE RATE SUPPORT
The DACs and ADCs on this device support all the recommended sample rates specified in the Intel AC'97 rev2.1 and rev2.2 specifications for audio rates. The default rate is 48ks/s. If alternative rates are selected and variable rate audio is enabled (Register 2Ah, bit 0), the AC'97 interface continues to run at 48k words per second, but data is transferred across the link in bursts such that the net sample rate selected is achieved. It is up to the AC'97 Revision 2.1/2 compliant controller to ensure that data is supplied to the AC link, and received from the AC link, at the appropriate rate. Variable rates are selected by writing to registers 2Ch (DAC) and 32h (ADC). ADC and DAC rates may be set independently, with left and right channels always at the same rate. Note that register 2Ch should only be written to when the DAC is powered ON, similarly register 32h should only be written to when the ADC is powered ON (see register 26h for power control). The device supports on demand sampling. That is, when the DAC signal processing circuits need another sample, a sample request is sent to the controller which must respond with a data sample in the next frame it sends. For example, if a rate of 24ks/s is selected, on average the device will request a sample from the controller every other frame, for each of the stereo DACs. Note that if an unsupported rate is written to one of the rate registers, the rate will default to the nearest rate supported. The Register will then respond, when interrogated, with the supported rate the device has defaulted to. The WM9705 clocks will scale automatically dependent upon the MCLK frequency, where MCLK is not equal to 24.576MHz. With a 24MHz clock the BCLK frequency expected will be 12MHz and the sampling frequency (SYNC0 expected is BCLK/256 = 46.875kHz. AUDIO SAMPLE RATE 8000 11025 16000 22050 32000 44100 48000 CONTROL VALUE D15-D0 1F40 2B11 3E80 5622 7D000 AC44 BB80
Table 1 Variable Sample Rates Supported
SPDIF OR I S DIGITAL AUDIO DATA OUTPUT
The WM9705 SPDIF output may be enabled in hardware by holding pin 44 (SPEN) high when RESETB is taken high, or by writing to the SPDIF control bit in register 2Ah. If SPDIF pin 48 is pulled high at start-up by a weak pull-up (e.g. 100k), then SPDIF capability bit in register 28h is set to `0', i.e. no SPDIF capability. This allows for stuffing options, so that when SPDIF external components are not provided, the driver will see `no SPDIF capability' and `grey out' the relevant boxes in the control panel. Additionally the digital audio may be output in I2S format using pin 44 (SPEN) as the data output, and outputting a frame clock or LRCLK onto pin 43. The data is clocked onto pin 44 using the regular BITCLK at 256fs, which would also then be used as the MCLK if the data is taken to an external DAC. Operation in this mode is selected by setting bit I2S in register 5Ch. A 64fs bitclk is also available and can be output on SPDIF by setting bit I2S64 in register 74h. Note that I2S operation is only supported for 48ks/s operation. Hardware selection of SPDIF operation by pulling pin SPEN `hi' is compatible with I2S operation, provided a weak pull-up (circa 100k) was used to hold SPEN high at start-up. The SPEN pin becomes I2S data output pin when I2S is enabled, and the weak pull-up on this pin is overdriven. For both SPDIF and I2S modes the data that is output may be sent from the WM9705 via the AC link in the same slots as normal DAC data or may be sent in different slots. The output slots that contain the SPDIF/I2S data are selected by bits SPSA[1:0] in register 2Ah. WM9705 is compliant with AC'97 rev2.2 specification with regard to slot mapping; therefore the default mode of operation is to output SPDIF or I2S data from the next data slots available after the audio data slots currently in use. Alternatively if required, data may be mapped from any of the available slots by selection using SPSA bits. The following table shows the default slot mapping for audio DACs and SPDIF/I2S data: (further details in the register description section later).
2
w
PD Rev 4.0 December 2003 20
WM9705
SPEN STATE AT START-UP `lo' (rev2.2 compliant) `lo' (rev2.2 compliant) `hi' (WM proprietary) `hi' (WM proprietary) CODEC ID (PIN 45 STRAPPING) `hi' = ID = 0 = primary `lo' = ID = 1 = secondary `hi' = ID = 0 = primary `lo' = ID = 1 = secondary AUDIO DAC SLOT DEFAULT Slots 3 and 4 - front channels Slots 7 and 8 - surround Slots 3 and 4 - front channels Slots 7 and 8 - surround
Production Data
SPDIF OR I2S DATASLOT DEFAULT Slots 7 and 8 Slots 6 and 9 Slots 3 and 4 Slots 3 and 4
Table 2 DAC and SPDIF Slot Mapping Defaults However, an exception to the rev2.2 mapping table is made when SPDIF operation is enabled using the SPEN hardware enable pin (being held high at start-up): in this case SPDIF data is immediately output from the DAC primary slots 3 and 4. This allows for driver-less SPDIF operation, where the SPDIF or I2S output is simply the data contained in the main audio DAC channels. Channel status and control bits output along with the SPDIF data are as set in the SPDIF control register 3Ah. If required SPDIF data channel slot mapping may be then changed by setting SPSA bits as required. See tables 18, 19 and 20 for further details. A mode is provided where the output from the ADC is sent out as the SPDIF or I2S data as above, rather than the data sent to the DACs over the AC link. This mode is enabled by setting bit ADCO in register 5Ch. ADC data continues to be sent via the AC link to the controller as normal. WM9705 supports SPDIF and I2S data only at the default 48ks/s frame rate. Writing to SPSR bits in register 3Ah any value other than the default 48ks/s rate will result in a fail to write, with the 48ks/s value being returned on subsequent reads of these values.
PRIMARY/SECONDARY ID SUPPORT
WM9705 supports operation as either a primary or a secondary codec. Configuration of the device as either a primary or as a secondary, is selected by tying the CID0 pin 45 on the package. Fundamentally, a device identified as a primary (ID = 0, CID0 = `hi') produces BITCLK as an output, whereas a secondary (any other ID) must be provided with BITCLK as an input. This has the obvious implication that if the primary device on an AC link is disabled, the secondary devices cannot function. The AC'97 Revision 2.2 specification defines that the CID0 pin has inverting sense, and are provided with internal weak pull ups. Therefore, if no connections are made to the CID0 pin, then the pin pull hi and an ID = 0 is selected, i.e. primary. External connect to ground (with pull-down from 0 to 10k) will select codec ID = `1'. PIN 45 CID0 NC or pull-up Ground ID SELECTED 0 1 PRIMARY OR SECONDARY Primary Secondary BITCLK Output Input
Table 3 Codec ID Selection
HEADPHONE DRIVE AND HEADSET AUTODETECT
Headphone drive capability is provided on the HPOUT output pins 39 and 41 (called AUXOUT in AC'97 rev2.2 specification) and also on the MONOOUT output pin 37. Headphones of impedance typically from 16 upwards may be connected to these pins. AC coupling with an appropriately sized capacitor is recommended for removal of the mid-rail DC pedestal present on these outputs. AC'97 rev2.2 specification recommends 32 headphones; if a headphone is connected for use as a headset, where the stereo ear-pieces are driven in parallel, then each capsule must be of minimum 32 impedance. In many applications it is desirable to be able to connect either a stereo headphone to the headphone output pins, or a mono headset, comprising ear-piece(s) and a microphone. The microphone signal is sent via the tip connected wire of the typical 3-wire jack. In this event it is desirable to be able to auto-detect the connection of either the headphone or the headset (with microphone). The main characteristic of the headset and microphone compared to the headphone is that the microphone impedance is typically much higher than the headphone capsule (assuming a typical moving coil headphone). Because of this it is possible to connect a weak pull-up to the tip connection of the headphone jack.
w
PD Rev 4.0 December 2003 21
WM9705
Production Data When a headphone is connected the low impedance to ground of the headset pulls down the DC level to near ground. If a headset with microphone is plugged in, the high impedance of the microphone does not pull down the DC level on the tip connection, the DC on this pin now rising to near positive supply. This change in DC level is detected, so allowing detection of change from headphone to microphone, (or nothing plugged in of course). When this event is detected, the headphone amplifier that drives the tip connection is turned off, and the signal on this pin is routed instead to the MIC1 input as a microphone input. This auto-detect comparator is enabled by setting bit HSCMP. The pull-up current is enabled by setting bit MPUEN in register 5Ch and also toggles the interrupt signal on the PENDET pin. When bit HSDT is set the mic1 input is connected to a comparator with a threshold set at midrail. When the comparator output is low, then the headphone driver is enabled. When the comparator output goes high (that is the pull-up current multiplied by the external impedance to ground on the mic1 pin is greater than mid-rail), the headphone amplifier is turned off and the mic1 signal is taken internally from the headphone output pin (39).
RIGHT MIXER HPVOL
reg 04h
HPOUTR
UP: MONO HEADSET WITH MIC DOWN: STEREO HEADPHONE
LEFT MIXER HSDT
reg 5Ch
HPOUTL MIC
HEAD PHONE
OFF (hi-Z) '1'
L
R
MIC AMP
MS
reg 20h
'0'
MIC1
'0'
'1'
HPGND MIC2
HSEN
reg 5Ch
INTERNAL MIC
+ VMID
HSCP
reg 5Ch
PENDET
HSCMP
reg 5Ch PEN LOGIC 5mA
MPUEN
reg 5Ch
Figure 10 Headset Autodetect Figure 10 shows this function schematically. The output signal from the comparator is accessible by reading bit HSCP in register 5Ch. Auto detect may be used by setting HSEN bit, or external control by using the HSDT bit which is an over-ride that forces the headset tri-state and microphone path switching function to occur. This function would allow, for example, a stereo headphone to be used that had a microphone in the connecting lead, and a switch. The switch changes the headphone into a mono headset with microphone connected via the tip connection on the jack. If used in a product such as an MP3 capable phone it would allow the user to switch from headphone use to headset use by simply switching a single switch in the headphone cable, so at the same time answering or initiating telephone calls. It may also be possible to use the pull-up current to provide so called `phantom power' to dynamic microphones with appropriate choice of microphone.
w
PD Rev 4.0 December 2003 22
WM9705 DATA SLOT MAPPING
Production Data
DAC data and SPDIF data sent to the device, ADC data sent from the device, can be optionally mapped into alternative slots under control of slot mapping bits located as follows: SLOT MAPPING DATA TYPE DAC data SPDIF data ADC data CONTROL BITS DSA[1,0] SPSA[1,0] ASS[1,0] REGISTER LOCATION 28h 2Ah 5Ch (non-AC'97 feature)
Table 4 Data Slot Mapping Control Default values and functional behavior are further described in the Serial Interface Register Map description. DAC slot mapping defaults are in Table 2.
AC-LINK DIGITAL SERIAL INTERFACE PROTOCOL
A digital interface has been provided to control the WM9705 and transfer data to and from it. This serial interface is compatible with the Intel AC'97 specification. The main control interface functions are:
* * * * *
Control of analogue gain and signal paths through the mixer Bi-directional transfer of ADC and DAC words to and from AC'97 controller Selection of power-down modes Control of pen digitizer function Transfer of pen digitizer information and auxiliary conversion results from the codec
The WM9705 incorporates a 5-pin digital serial interface that links it to the AC'97 controller. AClink is a bi-directional, fixed rate, serial PCM digital stream. It handles multiple input and output audio streams, as well as control register accesses employing a time division multiplexed (TDM) scheme. The AC-link architecture divides each audio frame into 12 outgoing and 12 incoming data streams, each with 20-bit sample resolution. With a minimum required DAC and ADC resolution of 16-bits, AC'97 may also be implemented with 18 or 20-bit DAC/ADC resolution, given the headroom that the AC-link architecture provides. The WM9705 provides support for 18bit audio operation.
SLOT NUMBER
0
1
2
3
4
5
6
7
8
9
10
11
12
SYNC
SDATAOUT
TAG CODEC ID
CMD ADR
CMD DATA
PCM LEFT
PCM RIGHT
RSRVD
RSRVD
RSRVD
RSRVD
RSRVD
RSRVD PCM L (n+1)
RSRVD PCM R (n+1)
RSRVD PCM C (n+1)
SDATAIN
TAG
STATUS ADDR
STATUS DATA
PCM LEFT
PCM RIGHT
RSRVD
RSRVD
RSRVD
RSRVD
RSRVD
RSRVD
RSRVD
RSRVD
SLOTREQ 3-12
DATA PHASE TAG PHASE
Figure 11 AC'97 Standard Bi-directional Audio Frame
w
PD Rev 4.0 December 2003 23
WM9705
TAG PHASE DATA PHASE 20.8S (48kHz) SYNC
12.288MHz 81.4nS
Production Data
BITCLK
SDATAOUT
VALID FRAME
SLOT(1)
SLOT(2)
SLOT(12)
'0'
'0'
'0'
19 SLOT (1)
0
19 SLOT (2)
0
19 SLOT (3)
0
19 SLOT (12)
0
END OF PREVIOUS AUDIO FRAME
TIME SLOT 'VALID' BITS ('1' = TIME SLOT CONTAINS VALID PCM DATA)
Figure 12 AC-link Audio Output Frame
The datastreams currently defined by the AC'97 specification include: PCM playback - 2 output slots PCM record data - 2 input slots Control - 2 output slots Status - 2 input slots Optional modem line codec output 1 output slot Optional modem line codec input - 1 input slot Optional dedicated microphone input 1 input slot 2-channel composite PCM output stream 2-channel composite PCM input stream Control Register write port Control Register read port Modem line codec DAC input stream Modem line codec ADC output stream Dedicated microphone input stream in support of stereo AEC and/or other voice applications.
Synchronisation of all AC-link data transactions is signalled by the WM9705 controller. The WM9705 drives the serial bit clock onto AC-link, which the AC'97 controller then qualifies with a synchronisation signal to construct audio frames. SYNC, fixed at 48kHz, is derived by dividing down the serial clock (BITCLK). BITCLK, fixed at 12.288MHz, provides the necessary clocking granularity to support 12, 20-bit outgoing and incoming time slots. AC-link serial data is transitioned on each rising edge of BITCLK. The receiver of AC-link data, (WM9705 for outgoing data and AC'97 controller for incoming data), samples each serial bit on the falling edges of BITCLK. The AC-link protocol provides for a special 16-bit time slot (slot 0) wherein each bit conveys a valid tag for its corresponding time slot within the current audio frame. A 1 in a given bit position of slot 0 indicates that the corresponding time slot within the current audio frame has been assigned to a data stream, and contains valid data. If a slot is tagged invalid, it is the responsibility of the source of the data, (the WM9705 for the input stream, AC'97 controller for the output stream), to stuff all bit positions with 0s during that slot's active time. SYNC remains high for a total duration of 16 BITCLKs at the beginning of each audio frame. The portion of the audio frame where SYNC is high is defined as the Tag Phase. The remainder of the audio frame where SYNC is low is defined as the Data Phase. Additionally, for power savings, all clock, sync, and data signals can be halted. This requires that the WM9705 be implemented as a static design to allow its Register contents to remain intact when entering a power savings mode.
w
PD Rev 4.0 December 2003 24
WM9705 AC-LINK AUDIO OUTPUT FRAME (SDATAOUT)
Production Data
The audio output frame data streams correspond to the multiplexed bundles of all digital output data targeting the WM9705's DAC inputs, and control registers. As briefly mentioned earlier, each audio output frame supports up to 12 20-bit outgoing data time slots. Slot 0 is a special reserved time slot containing 16-bits, which are used for AC-link protocol infrastructure. Within slot 0 the first bit is a global bit (SDATAOUT slot 0, bit 15) which flags the validity for the entire audio frame. If the Valid Frame bit is a 1, this indicates that the current audio frame contains at least one time slot of valid data. The next 12-bit positions sampled by the WM9705 indicate which of the corresponding 12 time slots contain valid data. In this way data streams of differing sample rates can be transmitted across AC-link at its fixed 48kHz audio frame rate. Figure 11 illustrates the time slot based AC-link protocol.
WM9705 SAMPLES SYNC ASSERTION HERE
SYNC
WM9705 SAMPLES FIRST SDATAOUT BIT OF FRAME HERE
BITCLK
SDATAOUT
VALID FRAME
SLOT (1)
SLOT (2)
END OF PREVIOUS AUDIO FRAME
Figure 13 Start of an Audio Output Frame A new audio output frame begins with a low to high transition of SYNC as shown in Figure 13. SYNC is synchronous to the rising edge of BITCLK. On the immediately following falling edge of BITCLK, the WM9705 samples the assertion of SYNC. This falling edge marks the time when both sides of AC-link are aware of the start of a new audio frame. On the next rising edge of BITCLK, AC'97 transitions SDATAOUT into the first bit position of slot 0 (Valid Frame bit). Each new bit position is presented to AC-link on a rising edge of BITCLK, and subsequently sampled by the WM9705 on the following falling edge of BITCLK. This sequence ensures that data transitions and subsequent sample points for both incoming and outgoing data streams are time aligned. Baseline AC'97 specified audio functionality MUST ALWAYS sample rate convert to and from a fixed 48ks/s on the AC'97 controller. This requirement is necessary to ensure that interoperability between the AC'97 controller and the WM9705, among other things, can be guaranteed by definition for baseline specified AC'97 features. SDATAOUT's composite stream is MSB justified (MSB first) with all non-valid slot bit positions stuffed with 0s by the AC'97 controller. In the event that there are less than 20 valid bits within an assigned and valid time slot, the AC'97 controller always stuffs all trailing non-valid bit positions of the 20-bit slot with 0s. As an example, consider an 8-bit sample stream that is being played out to one of the WM9705's DACs. The first 8 bit positions are presented to the DAC (MSB justified) followed by the next 12 bit positions, which are stuffed with 0s by the AC'97 controller. This ensures that regardless of the resolution of the implemented DAC (16, 18 or 20-bit), no DC biasing will be introduced by the least significant bits. When mono audio sample streams are output from the AC'97 controller, it is necessary that BOTH left and right sample stream time slots be filled with the same data.
w
PD Rev 4.0 December 2003 25
WM9705
SLOT 1: COMMAND ADDRESS PORT
Production Data
The command port is used to control features, and monitor status for the WM9705 functions including, but not limited to, mixer settings, and power management (refer to the Serial Interface Register Map). The control interface architecture supports up to 64, 16-bit read/write registers, addressable on even byte boundaries. Only the even Registers (00h, 02h, etc.) are valid, odd Register (01h, 03h, etc.) accesses are discouraged (if supported they should default to the preceding even byte boundary - i.e. a read to 01h will return the 16-bit contents of 00h). The WM9705's control register file is nonetheless readable as well as writeable to provide more robust testability. Audio output frame slot 1 communicates control register address, and read/write command information to the WM9705.
COMMAND ADDRESS PORT BIT ASSIGNMENTS
Bit (19) Bit (18:12) Bit (11:0) Read/write command (1 = read, 0 = write) Control register index (64 16-bit locations, addressed on even byte boundaries) Reserved (stuffed with 0s)
The first bit (MSB) sampled by the WM9705 indicates whether the current control transaction is a read or write operation. The following 7 bit positions communicate the targeted control register address. The trailing 12 bit positions within the slot are reserved and must be stuffed with 0s by the AC'97 controller.
SLOT 2: COMMAND DATA PORT
The command data port is used to deliver 16-bit control register write data in the event that the current command port operation is a write cycle. (As indicated by slot 1, bit 19). Bit (19:4) Bit (3:0) Control register write data (stuffed with 0s if current operation is a read) Reserved (stuffed with 0s)
If the current command port operation is a read then the entire time slot must be stuffed with 0s by the AC'97 controller.
SLOT 3 AND 4: PCM PLAYBACK LEFT AND RIGHT CHANNELS
Audio output frame slots 3 and 4 are the stereo digital audio left and right playback streams. In a typical Games Compatible PC this data is composed of standard PCM (.wav) output samples digitally mixed (on the AC'97 controller or host processor) with music synthesis output samples. If a sample stream of resolution less than 20-bits is transferred, the AC'97 controller must stuff all trailing non-valid bit positions within this time slot with 0s.
SLOT 5: OPTIONAL MODEM LINE CODEC
This data slot is not supported.
SLOTS 6 AND 9: LFE AND CENTER CHANNEL DATA
Data in these slots may be mapped onto the audio DACs or output as SPDIF/I2S data under control of the mapping bits DSA[1:0] in register 28h and SPSA[1:0] in register 2Ah.
SLOTS 7 AND 8: SURROUND CHANNEL DATA
Data in these slots may be mapped onto the audio DACs or output as SPDIF/I2S data under control of the mapping bits DSA in register 28h and SPSA in register 2Ah.
SLOTS 10 AND 11:
Data in these slots may be mapped onto the audio DACs or output as SPDIF/I2S data under control of the mapping bits DSA in register 28h and SPSA in register 2Ah.
SLOT 12: GPIO
Data in this slot is not supported.
w
PD Rev 4.0 December 2003 26
WM9705 AC-LINK AUDIO INPUT FRAME (SDATAIN)
TAG PHASE DATA PHASE 20.8S (48kHz) SYNC
12.288MHz 81.4nS
Production Data
BITCLK
SDATAIN
CODEC READY
SLOT(1)
SLOT(2)
SLOT(12)
'0'
'0'
'0'
19 SLOT (1)
0
19 SLOT (2)
0
19 SLOT (3)
0
19 SLOT (12)
0
END OF PREVIOUS AUDIO FRAME
TIME SLOT 'VALID' BITS ('1' = TIME SLOT CONTAINS VALID PCM DATA)
Figure 14 AC-link Audio Input Frame The audio input frame data streams correspond to the multiplexed bundles of all digital input data targeting the AC'97 controller. As is the case for audio output frame, each AC-link audio input frame consists of 12, 20-bit time slots. Slot 0 is a special reserved time slot containing 16-bits, which are used for AC-link protocol infrastructure. Within slot 0 the first bit is a global bit (SDATAIN slot 0, bit 15) which flags whether the WM9705 is in the Codec Ready state or not. If the Codec Ready bit is a 0, this indicates that the WM9705 is not ready for normal operation. This condition is normal following the desertion of power on reset for example, while the WM9705's voltage references settle. When the AC-link Codec Ready indicator bit is a 1, it indicates that the AC-link and the WM9705 control and status registers are in a fully operational state. The AC'97 controller must further probe the Powerdown Control/Status Register to determine exactly which subsections, if any, are ready. Prior to any attempts at putting the WM9705 into operation the AC'97 controller should poll the first bit in the audio input frame (SDATAIN slot 0, bit 15) for an indication that the WM9705 has gone Codec Ready. Once the WM9705 is Codec Ready, then the next 12 bit positions sampled by the AC'97 controller indicate which of the corresponding 12 time slots are assigned to input data streams, and that they contain valid data. Figure 14 illustrates the time slot based AC-link protocol. There are several subsections within the WM9705 that can independently go busy/ready. It is the responsibility of the WM9705 controller to probe more deeply into the WM9705 register file to determine which of the WM9705 subsections are actually ready.
THE WM9705 SAMPLES SYNC ASSERTION HERE
SYNC
AC'97 CONTROLLER SAMPLES FIRST SDATAIN BIT OF FRAME HERE
BITCLK
SDATAIN
CODEC READY
SLOT (1)
SLOT (2)
END OF PREVIOUS AUDIO FRAME
Figure 15 Start of an Audio Input Frame
w
PD Rev 4.0 December 2003 27
WM9705
Production Data A new audio input frame begins with a low to high transition of SYNC as shown in Figure 15. SYNC is synchronous to the rising edge of BITCLK. On the immediately following falling edge of BITCLK, the WM9705 samples the assertion of SYNC. This falling edge marks the time when both sides of AC-link are aware of the start of a new audio frame. On the next rising edge of BITCLK, the AC'97 controller transitions SDATAIN into the first bit position of slot 0 (valid frame bit). Each new bit position is presented to AC-link on a rising edge of BITCLK, and subsequently sampled by the AC'97 controller on the following falling edge of BITCLK. This sequence ensures that data transitions and subsequent sample points for both incoming and outgoing data streams are time aligned. SDATAIN's composite stream is MSB justified (MSB first) with all non-valid bit positions (for assigned and/or unassigned time slots) stuffed with 0's by the WM9705. SDATAIN is sampled on the falling edges of BITCLK.
SLOT 1: STATUS ADDRESS PORT
The status port is used to monitor status for the WM9705 functions including, but not limited to, mixer settings, and power management. Audio input frame slot 1 echoes the control register index, for historical reference, for the data to be returned in slot 2. (Assuming that slots 1 and 2 had been tagged valid by the WM9705 during slot 0). Bit (19) Bit (18:12) Bit (11:2) Bit[1:0] RESERVED (stuffed with 0s) Control register index (echo of register index for which data is being returned) Variable Sample Rate SLOTREQ bits RESERVED (stuffed with 0s)
Table 5 Status Address Port Bit Assignments The first bit (MSB) generated by the WM9705 is always stuffed with a 0. The following 7 bit positions communicate the associated control register address. The next 10 bits support the AC'97 Rev 2.2 variable sample rate signaling protocol and the trailing 2 bit positions are stuffed with 0s by the codec.
SLOT 2: STATUS DATA PORT
The status data port delivers 16-bit control register read data. Bit (19:4) Bit (3:0) Control register read data (stuffed with 0s if tagged invalid by WM9705) RESERVED (stuffed with 0s)
Table 6 Status Data Port Bit Assignments If slot 2 is tagged invalid by the WM9705, then the entire slot will be stuffed with 0s by the WM9705.
SLOTS 3 AND 4: PCM RECORD LEFT AND RIGHT CHANNELS
Audio input frame slots 3 and 4 are the left and right channel outputs of the WM9705's audio ADC. Note that this data may alternatively be mapped onto slots 6 and 9, or 7 and 8 under control of the mapping bits ASS[1:0] in register 5Ch. The WM9705 sends out its ADC output data (MSB first), and stuffs any trailing non-valid bit positions with 0s to fill out its 20-bit time slot.
SLOT 5: OPTIONAL MODEM LINE ADC
This slot is not supported by WM9705 in AC'97 compliant mode - this may be determined by the AC'97 controller interrogating the WM9705 Reset Register, 00h. However, Pen ADC data may be output in this slot, selected by SLT[2:0] in register 76h.
SLOTS 6 AND 9:
These data slots may be utilised by the WM9705 to output audio data under control of the mapping bits ASS[1:0] in register 5Ch, allowing implementation of multi-channel systems. These slots may also be used to output Pen ADC data.
w
PD Rev 4.0 December 2003 28
WM9705
SLOTS 7 AND 8:
Production Data
These data slots may be utilised by the WM9705 to output audio data under control of the mapping bits ASS [1:0] in register 5Ch, allowing implementation of multi-channel systems. These slots may also be used to output Pen ADC data.
SLOTS 10 AND 11:
These data slots may be utilised by the WM9705 to output audio data under control of the mapping bits ASS[1:0] in register 5Ch, allowing implementation of multi-channel systems. These slots may also be used to output Pen ADC data.
SLOT 12:
Pen digitiser data may be mapped onto this slot as MSB justified words, under control of register 76h. Alternatively pen input data can also be read from register 76h.
AC-LINK LOW POWER MODE
The AC-link signals can be placed in a low power mode. When the WM9705's Powerdown Register 26h, is programmed to the appropriate value, both BITCLK and SDATAIN will be brought to, and held at a logic low voltage level. BITCLK and SDATAIN are transitioned low immediately following the decode of the write to the Powerdown Register (26h) with PR4. When the AC'97 controller driver is at the point where it is ready to program the AC-link into its low power mode, slots 1 and 2 are assumed to be the only valid stream in the audio output frame. At this point in time it is assumed that all sources of audio input have also been neutralised. The AC'97 controller should also drive SYNC and SDATAOUT low after programming the WM9705 to this low power, halted mode. Once the WM9705 has been instructed to halt BITCLK, a special wake up protocol must be used to bring the AC-link to the active mode since normal audio output and input frames can not be communicated in the absence of BITCLK. In addition to the standard AC'97 wake-up protocol, the WM9705 also supports a wake-up after a pen-down status has been determined.
WAKING UP THE AC-LINK
There are 3 methods for bringing the AC-link out of a low power, halted mode. AC-link protocol provides for a Cold WM9705 Reset, a Warm WM9705 Reset and a Pen Down Detect Warm Reset. The current Powerdown state would ultimately dictate which form of WM9705 reset is appropriate. Unless a cold or register reset (a write to the Reset Register 00h) is performed, wherein the WM9705 registers are initialised to their default values, registers are required to keep state during all Powerdown modes. Once powered down, re-activation of the AC-link via re-assertion of the SYNC signal must not occur for a minimum of 4 audio frame times following the frame in which the Powerdown was triggered. When AC-link powers up it indicates readiness via the Codec Ready bit (input slot 0, bit 15).
COLD WM9705 RESET
A cold reset is achieved by asserting RESETB for the minimum specified time. By driving RESETB low, BITCLK, and SDATAOUT will be activated, or re-activated as the case may be, and all the WM9705 control registers will be initialised to their default power on reset values. RESETB is an asynchronous WM9705 input.
WARM WM9705 RESET
A warm WM9705 reset will re-activate the AC-link without altering the current WM9705 register values. A warm reset is signaled by driving SYNC high for a minimum of 1s in the absence of BITCLK.
w
PD Rev 4.0 December 2003 29
WM9705
Production Data Within normal audio frames SYNC is synchronous to the WM9705 input. However, in the absence of BITCLK, SYNC is treated as an asynchronous input used in the generation of a warm reset to the WM9705. The WM9705 will not respond with the activation of BITCLK until SYNC has been sampled low again by the WM9705. This will preclude the false detection of a new audio frame.
PEN DOWN WM9705 WAKE-UP
If pen down is detected when the device is in low power halted mode with PRP[1:0] set to 01 and RPR set to 1, PR4 will be reset and the CODEC will transition SDATAIN from low to high to indicate a wakeup to the controller for it to restart the ACLINK. This wakeup mode is disabled when RPR is set.
POWER DOWN DURING WM9705 RESET - HARDWARE POWER DOWN MODE
Note that the normal default condition of WM9705 when RESETB is applied is `all active'. However, if pin 43 MASK is pulled `hi' during RESETB active, all PR bits are overridden and the device enters a low power mode. This allows a low power standby mode to be entered without writing to the device, a condition that is desirable for example, if batteries are changed in a PDA. The state of MASK is latched on the rising edge of RESETB and if MASK is `hi' the device will remain in low power mode until register 26h is written to.
SERIAL INTERFACE REGISTER MAP DESCRIPTION
(See Table 23) The serial interface bits perform control functions described as follows: The register map is fully specified by the AC'97 specification, and this description is simply repeated below, with optional unsupported features omitted.
RESET REGISTER (INDEX 00h)
Writing any value to this register performs a register reset, which causes all registers to revert to their default values. Reading this register returns the ID code of the part, indication of modem support (not supported by the WM9705) and a code for the type of 3D stereo enhancement. The ID decodes the capabilities of the WM9705 based on the following: BIT ID0 ID1 ID2 ID3 ID4 ID5 ID6 ID7 ID8 ID9 SE4...SE0 FUNCTION Dedicated Mic PCM in channel Modem line codec support Bass and treble control Simulated stereo (mono to stereo) Headphone out support Loudness (bass boost) support 18-bit DAC resolution 20-bit DAC resolution 18-bit ADC resolution 20-bit ADC resolution Wolfson Microelectronics 3D enhancement VALUE ON WM9705 0 0 0 0 1 0 1 0 1 0 11000
Table 7 Reset Register Function Note that the WM9705 defaults to indicate 18-bit compatibility.
PLAY MASTER VOLUME REGISTERS (INDEX 02h, 04h AND 06h)
These registers manage the output signal volumes. Register 02h controls the stereo master volume (both right and left channels), Register 04h controls the stereo headphone out, and Register 06h controls the mono volume output. Each step corresponds to 1.5dB. The MSB of the register is the mute bit. When this bit is set to 1 the level for that channel is set at -dB. ML4 to ML0 is for left channel level, MR4 to MR0 is for the right channel and MM4 to MM0 is for the mono out channel.
w
PD Rev 4.0 December 2003 30
WM9705
Production Data Support for the MSB of the volume level is not provided by the WM9705. If the MSB is written to, then the WM9705 detects when that bit is set and sets all 4 LSBs to 1s. Example: If the driver writes a 1xxxxx the WM9705 interprets that as x11111. It will also respond when read with x11111 rather than 1xxxxx, the value written to it. The driver can use this feature to detect if support for the 6th bit is there or not. The default value of both the mono and the stereo registers is 8000h (1000 0000 0000 0000), which corresponds to 0dB gain with mute on. MUTE 0 0 0 1 MX4...MX0 0 0000 0 0001 1 1111 x xxxx FUNCTION 0dB attenuation 1.5dB attenuation 46.5dB attenuation
dB attenuation
Table 8 Volume Register Function The Headphone out has an additional 6dB boost, selectable by setting HPB in register 74h.
PC BEEP REGISTER (INDEX 0Ah)
This controls the level for the PC-beep input. Each step corresponds to approximately 3dB of attenuation. The MSB of the register is the mute bit. When this bit is set to 1 the level for that channel is set at -dB. WM9705 defaults to the PC-beep path being muted, so an external speaker should be provided within the PC to alert the user to power on self-test problems. MUTE 0 0 1 PV3...PV0 0000 1111 xxxx FUNCTION 0dB attenuation 45dB attenuation
dB attenuation
Table 9 PC-beep Register Function
ANALOGUE MIXER INPUT GAIN REGISTERS (INDEX 0Ch - 18h AND 72h)
This controls the gain/attenuation for each of the analogue inputs and mixer PGA. Each step corresponds to approximately 1.5dB. The MSB of the register is the mute bit. When this bit is set to 1 the level for that channel is set at -dB. Note that the gain for the VID and AUX input channels is fixed at 0dB. Writes to the gain control bits for these channels are ignored, and the value of readback for these registers is always the default, with the exception of the mute bit 15 which may be written to and read from. The default value for the mono registers is 8008h, which corresponds to 0dB gain with mute on. The default value for stereo registers is 8808h, which corresponds to 0dB gain with mute on. MUTE 0 0 0 1 GX4...GX0 00000 01000 11111 xxxxx FUNCTION +12dB gain 0dB gain -34.5dB gain -dB gain
Table 10 Mixer Gain Control Register Function
REGISTER 0Eh (MIC VOLUME REGISTER)
This has an extra bit that is for a 20dB boost. When bit 6 is set to 1 the 20dB boost is on. The default value is 8008h, which corresponds to 0dB gain with mute on.
RECORD SELECT CONTROL REGISTER (INDEX 1Ah)
Used to select the record source independently for right and left (see Table 11). The default value is 0000h, which corresponds to Mic in. Setting Bit ADCNDAC in Register 5Ch selects a stereo mix WITHOUT DAC when (5 x 2 - 5 x 0) is 5.
w
PD Rev 4.0 December 2003 31
WM9705
SR2 TO SR0 0 1 2 3 4 5 6 7 RIGHT RECORD SOURCE Mic CD in (R) Video in (R) Aux in (R) Line in (R) Stereo mix (R) Mono mix Phone SL2 TO SL0 0 1 2 3 4 5 6 7 Mic CD in (L) Video in (L) Aux in (L) Line in (L)
Production Data LEFT RECORD SOURCE
Stereo mix (L) Mono mix Phone
Table 11 Record Select Register Function
RECORD GAIN REGISTERS (INDEX 1Ch)
1Ch sets the stereo input record gain with each step corresponding to 1.5dB. The MSB of the register is the mute bit. When this bit is set to 1, the level for both channels is set at -dB. The default value is 8000h, which corresponds to 0dB gain with mute on. MUTE 0 0 1 GX3...GX0 1111 0000 xxxxx FUNCTION +22.5dB gain 0dB gain -dB gain
Table 12 Record Gain Register Function
GENERAL PURPOSE REGISTER (INDEX 20h)
This register is used to control several miscellaneous functions of the WM9705. Below is a summary of each bit and its function. Only the POP, 3D, MIX, MS and LPBK bits are supported by the WM9705. The MS bit controls the Mic selector. The LPBK bit enables loopback of the ADC output to the DAC input without involving the AC-link, allowing for full system performance measurements. The function default value is 0000h which is all off. BIT POP 3D MIX MS LPBK FUNCTION PCM out path and mute, 0 = pre-3D, 1 = post-3D 3D stereo enhancement on/off, 1 = on Mono output select 0 = Mix, 1 = Mic Mic select 0 = Mic1, 1 = Mic2 ADC/DAC loopback mode
3D CONTROL REGISTER (INDEX 22h)
This register is used to control the centre and/or depth of the 3D stereo enhancement function built into the AC'97 component. Only the depth bits DP0 to 3 have effect in the WM9705. DP3...DP0 0 1 8 15 Table 13 3D Control Register DEPTH 0%
Typical value 100%
POWERDOWN CONTROL/STATUS REGISTER (INDEX 26h)
This read/write register is used to program power-down states and monitor subsystem readiness. The lower half of this register is read only status, a 1 indicating that the subsection is ready. Ready is defined as the subsection able to perform in its nominal state. When this register is written the bit values that come in on AC-link will have no effect on read bits 0- 7.
w
PD Rev 4.0 December 2003 32
WM9705
Production Data When the AC-link Codec Ready indicator bit (SDATAIN slot 0, bit 15) is a 1 it indicates that the AC-link and the WM9705 control and status registers are in a fully operational state. The AC'97 controller must further probe this Powerdown Control/Status Register to determine exactly which subsections, if any, are ready. Note that the normal default condition of WM9705 when RESETB is applied is `all active'. However, if pin MASK is pulled `hi' during RESETB active, all PR bits are overridden and the device enters a low power mode. This allows a low power standby mode to be entered without writing to the device, a condition that is desirable for example, if batteries are changed in a PDA. The state of the MASK pin is latched on the rising edge of RESETB and if MASK is `hi' then the WM9705 will remain in low power mode until register 26h is written to. READ BIT REF ANL DAC ADC FUNCTION VREFs up to nominal level Analogue mixers, etc ready DAC section ready to accept data ADC section ready to transmit data
Table 14 Powerdown Status Register Function The Powerdown modes are as follows. The first three bits are to be used individually rather than in combination with each other. The last bit PR3 can be used in combination with PR2 or by itself. PR0 and PR1 control the PCM ADCs and DACs only. PR6 powers down just the stereo Line Level output headphone amps on pins 39/41. The WM9705 also includes a low power DAC to headphone mode, whereby resetting PR1and PR6 enables the DAC and the path from the DAC to HPOUTL/R without having to power up the main mixer (PR2). The POP bit (reg 20h) also needs to be set for this mode. The headphone amplifier on the MONO output pin in not powered down by PR6, rather by PR2 or alternatively may be enabled by setting MONOEN in register 74h. WRITE BIT PR0 PR1 PR2 PR3 PR4 PR5 PR6 EAPD FUNCTION PCM in ADCs and input Mux Powerdown PCM out DACs Powerdown Analogue mixer Powerdown (VREF still on) Analogue mixer Powerdown (VREF off) Digital interface (AC-link) Powerdown (external clock off) Internal clock disable HP amp Powerdown External amplifier Powerdown
Table 15 Powerdown Control Register Function
PR0 = 1
PR1 = 1
PR2 = 1
PR4 = 1
NORMAL
ADCs OFF PR0
DACs OFF PR1
ANALOGUE OFF PR2 OR PR3
DIGITAL I/F OFF PR4
SHUT OFF CODA LINK
PR0 = 0 AND ADC = 1
PR1 = 0 AND DAC = 1
PR2 = 0 AND ANL = 1
WARM RESET
READY = 1 DEFAULT
COLD RESET
Figure 16 An Example of the WM9705 Powerdown/Powerup Flow
w
PD Rev 4.0 December 2003 33
WM9705
Production Data Figure 16 illustrates one example procedure to do a complete Powerdown of the WM9705. From normal operation sequential writes to the Powerdown Register are performed to Powerdown the WM9705 a piece at a time. After everything has been shut off (PR0 to PR3 set), a final write (of PR4) can be executed to shut down the WM9705's digital interface (AC-link). The part will remain in sleep mode with all its registers holding their static values. To wake up the WM9705, the AC'97 controller will send a pulse on the sync line issuing a warm reset. This will restart the WM9705's digital interface (resetting PR4 to 0). The WM9705 can also be woken up with a cold reset. A cold reset will cause a loss of values of the registers, as a cold reset will set them to their default states. When a section is powered back on, the Powerdown Control/Status Register (index 26h) should be read to verify that the section is ready (i.e. stable) before attempting any operation that requires it.
PR0 = 1
PR1 = 1
PR4 = 1
NORMAL
ADC's OFF PR0
DACs OFF PR1
DIGITAL I/F OFF PR4
SHUT OFF CODA LINK
PR0 = 0 AND ADC = 1
PR1 = 0 AND DAC = 1
WARM RESET
Figure 17 The WM9705 Powerdown Flow with Analogue Still Active Figure 17 illustrates a state when all the mixers should work with the static volume settings that are contained in their associated registers. This is used when the user could be playing a CD (or external LINEIN source) through WM9705 to the speakers but have most of the system in low power mode. The procedure for this follows the previous except that the analogue mixer is never shut down. The device can be used as a pen digitiser only, in order to set the WM9705 into this mode powerdown bits PR3 to 0, PR6 and EAPD should be set. Note that in order to go into ultimate low power mode, PR4 and PR5 are required to be set which turns off the oscillator circuit. Asserting SYNC resets the PR4 and PR5 bit and re-starts the oscillator in the same way as the AC link is restarted.
REGISTER 28h - EXTENDED AUDIO ID
The Extended Audio ID register is a read only register that identifies which extended audio features are supported (in addition to the original AC'97 features identified by reading the reset register at index 00h). A non zero value indicates the feature is supported.
w
PD Rev 4.0 December 2003 34
WM9705
DATA BIT VRA DRA SPDIF VRM DSA0 DSA1 CDAC SDAC LDAC AMAP REV0 REV1 ID0 ID1 FUNCTION Variable rate audio support Double rate audio support SPDIF transmitter supported Variable rate Mic ADC support DAC slot mapping control DAC slot mapping control Centre DAC support Surround DAC support LFE DAC support Slot mapping support for Codec ID Revision number Revision number Codec configuration - pin 45 value Codec configuration - fixed in WM9705 VALUE 1 0
Production Data
`1' = supported 0 See table below See table below 0 0 0 1 1 0 0 (Inverse of level at pin 45) 0
Table 16 Extended Audio ID Register
DSA1, DSA0 00 01 10 11
DAC SLOT MAPPING Slots 3 and 4 Slots 7 and 8 Slots 6 and 9 Slots 10 and 11
Table 17 DAC Slot Mapping DAC slot mapping to slots 7 and 8 or slots 6 and 9 cannot be used in variable rate mode (VRA=1) for sample rates other than 48kHz.
REGISTER 2AH - EXTENDED AUDIO STATUS AND CONTROL REGISTER
The Extended Audio Status and Control Register is a read/write register that provides status and control of the extended audio features. Note that SPDIF slot mapping default varies according to codec pin configuration. See Table 2. DATA BIT VRA SPDIF SPSA0 SPSA1 SPCV FUNCTION Enables variable rate audio mode SPDIF transmitter enable SPDIF slot assignment SPDIF slot assignment SPDIF validity bit READ/WRITE Read/write Read/write Read/write Read/write Read
Table 18 Extended Audio Status and Control Register
SPSA0, SPSA1 00 01 10 11
SPDIF SLOT MAPPING Slots 3 and 4 Slots 7 and 8 Slots 6 and 9 Slots 10 and 11
Table 19 SPDIF Slot Mapping
REGISTER 2Ch AND 32h - AUDIO SAMPLE RATE CONTROL REGISTERS
These registers are read/write registers that are written to, to select alternative sample rates for the audio PCM converters. Default is the 48ks/s rate. Note that only Revision 2.2 recommended rates are supported by the WM9705, selection of any other unsupported rates will cause the rate to default to the nearest supported rate, and the supported rate value to be latched and so read
w
PD Rev 4.0 December 2003 35
WM9705
Production Data back. Sample rate is entered in binary form to the appropriate register. Note sample rates should only be altered when the relevant DAC or ADC is powered ON.
REGISTERS 3AH - SPDIF CONTROL REGISTER
Register 3Ah is a read/write register that controls SPDIF functionality and manages bit fields propagated as channel status (or sub-frame in the V case). With the exception of V, this register should only be written to when the SPDIF transmitter is disabled (SPDIF bit in register 2Ah is `0'). Once the desired values have been written to this register, the contents should be read back to ensure that the sample rate in particular is supported, then SPDIF validity bit SPCV in register 2Ah should be read to ensure the desired configuration is valid. Only then should the SPDIF enable bit in register 2Ah be set. This ensures that control and status information start up correctly at the beginning of SPDIF transmission. WM9705 only supports an SPDIF sample rate of 48kHz. CONTROL BIT PRO AUDIB COPY PRE CC[6-0] L V FUNCTION Professional; `0' indicates consumer, `1' indicates professional Non-audio; `0' indicates data is PCM, `1' indicates non-PCM format (eg DD or DTS) Copyright; `0' indicates copyright is not asserted, `1' indicates copyright Pre-emphasis; `0' indicates not pre-emphasis, `1' indicates 50/15us pre-emphasis Category code; programmed as required by user Generation level; programmed as required by user Validity bit; `0' indicates frame valid, `1' indicates frame not valid
Table 20 SPDIF Control Register
VENDOR SPECIFIC REGISTERS (INDEX 5Ah - 7Ah)
These registers are vendor specific. Do not write to these registers unless the Vendor ID register has been checked first to ensure that the controller knows the source of the AC `97 component.
MIXER MUTE PATH (INDEX 5Ah)
Bit 4 (MPM) is used to disable the path between the main input mixer and the lineout mixer, see Figure 9. Setting this bit to 1, breaks the connection and allows the following combinations: DAC + PHONE + PCBEEP to line out / headphone out DAC + CD + LINE + AUX + VID + MIC to mono output When writing to this register all bits (except MPM) must be written as a 0 or device function can not be guaranteed. Only the default value can be read from this register.
VENDOR SPECIFIC MODE CONTROL (INDEX 5Ch)
Register 5Ch is a vendor specific control register used to control the function of non-AC'97 specified functions. This register defaults to all special features `disabled' i.e. All zeros.
w
PD Rev 4.0 December 2003 36
WM9705
CONTROL BIT AMUTE HSCP MPUEN MHPZ PSEL HSDT HSEN HPND AMEN I 2S ADCNDAC ADCO HPF HSCMP ASS1 ASS0 FUNCTION
Production Data
Indicates automute has been detected in the audio DAC (all `0' data) - read only Headset detect comparator output - read only Mic pull up enable Mono headphone tristate enable PHONE to MONO path switch enable Overrides Headset detect comparator, forcing left headphone amp to tristate Headset auto-detect enable Headphone with no DAC enable Automute enable bit I2S data output enable ADC no DAC path enable ADC to SPDIF and/or I2S output ADC high pass filter disable; Headset comparator enable bit ADC slot map control ADC slot map control
Table 21 Vendor Specific Control Register 5Ch AMUTE indicates automute state has been detected. This is a read-only bit. 1 = automute detected. HSCP is a read only bit, indicating headset detected. It is the output from the headset autodetect comparator. 0 = headset detected. MPUEN enables a 5mA (typ) pull up current on the MIC1 input pin, which when a headset microphone of high impedance is plugged in, causes the MIC1 pin to pull up to above Vmid, and be detected. 1 = enable. MHPZ tristates the MONO headphone driver output buffer. 1 = tristate. PSEL enables the switch from PHONE input to MONO output; see block diagram. 1 = enable. HSEN enables headset auto-detect function. HSCMP enables the headset detect comparator. 1 = enable. HSDT overrides the headset auto-detect comparator, forcing the left headphone output to tristate and the HPLOUTL pin to be used as a headset microphone input path to the mic1 preamplifier input. 1 = autodetect comparator override. HPND enables the switch which outputs only the analog mixer output to the HPHONE outputs, without the DAC signal being summed in. See block diagram. 1 = enable. AMEN enables the DAC automute function, which detects zero data on both dac channels and auto-mutes the outputs under this condition. 1 = enable. Bit I2S enables I2S output, sending an LRCLK to the MASK/LRC pin (pin 43) and I2S data to the SPEN/I2S pin (pin 44). BITCLK is used to clock out the data. Only 48ks/s data is supported. 1 = enable. ADCNDAC selects input to the ADC from before the point where the DAC signal is summed in. 1 = select. Bit ADCO is used to select data from the internal ADCs to be output as SPDIF or I2S data on these pins rather than the data from the selected AC link slot. 1 = select. HPF turns off the digital high pass filter in the ADC output when set to `1'. ASS1, ASS0 are ADC slot mapping control bits. See table below. Default is slots 3 and 4.
w
PD Rev 4.0 December 2003 37
WM9705
ASS1, ASS0 00 01 10 11 ADC SLOT MAPPING ( L/R) Slots 3 and 4 Slots 7 and 8 Slots 6 and 9 Slots 10 and 11
Production Data
Table 22 ADC Slot Mapping Control
VENDOR SPECIFIC GAIN CONTROL REGISTER (INDEX 72h)
This register controls the gain and mute functions applied to the mixer path. This PGA is not accommodated in the Intel specification, but is required in order to allow the option of simultaneous recording of the mixer output and playback of DAC signals. The function is as for the other mixer PGA's. However, the default value of the register is not-muted. If it is not used it will be transparent to the user. Normally this reigster would be used in collaboration with bit ADCNDAC in register 5Ch, allowing recording of the analog mix, manipulation in the digital domain by an external DSP, then playback through the DACs on the WM9705.
PEN DIGITIZER CONTROL REGISTERS (INDEX 76, 78h)
These registers are used for pen digitiser control. See Pen Digitiser Operation section, for details of operation.
PEN DIGITIZER DATA REGISTER (INDEX 7Ah)
Register 7Ah is used to store the results of digitizer ADC conversions, both for pen inputs and for auxiliary input conversions. Results are downloaded to the controller by interrogating this register. See Pen Digitiser Operation section for more details.
VENDOR SPECIFIC ADDITIONAL FUNCTIONALITY (INDEX 74H)
HPB boosts the headphone output by 6dB. 1 = 6dB boost enabled. I2S64 enables a 64fs bitclk output on SPDIF for i2s data output. 1 = enabled. MONOEN enables the mono output independently of PR2 (MIXER Powerdown). This allows the DAC to MONOUT path to be powered up by resetting PR1 and setting MONOEN while the Mixer is powered down (PR2 set), providing a lower power mode when the mixer function is not required.
VENDOR ID REGISTERS (INDEX 7Ch AND 7Eh)
These registers are for specific vendor identification if so desired. The ID method is Microsoft's Plug and Play Vendor ID code. The first character of that ID is F7 to F0, the second character S7 to S0, and the third T7 to T0. These three characters are ASCII encoded. The REV7 to REV0 field is for the Vendor Revision number. In the WM9705 the vendor ID is set to WML5. Wolfson is a registered Microsoft Plug and Play vendor.
w
PD Rev 4.0 December 2003 38
WM9705
Production Data
SERIAL INTERFACE REGISTER MAP
The following table shows the function and address of the various control bits that are loaded and read through the serial interface. Reg 00h 02h 04h 06h
0Ah 0Ch 0Eh 10h 12h 14h 16h 18h 1Ah 1Ch 20h 22h 26h 28h 2Ah 2Ch 32h 3Ah 5Ah 5Ch 72h 74h 76h 78h 7Ah 7Ch 7Eh
Name Reset Master volume HPHONE volume Master volume mono PCBEEP volume Phone volume Mic volume Line in volume CD volume Video volume Aux volume PCM out volume Rec select Rec gain General purpose 3D control Power/down control status Ext'd audio ID Ext'd audio stat/ctrl Audio DAC rate Audio ADC rate SPDIF control Mixer Path Mute Add. Function control Front mixer volume Add. Function Digitizer control Digitizer control Pen Digitizer data Vendor ID1 Vendor ID2
D15 X Mute Mute Mute
Mute Mute Mute Mute Mute Mute Mute Mute X Mute POP X APD ID1 X
D14 SE4 X X X
X X X X X X X X X X X X PR6 ID0 X
D13 SE3 X X X
X X X X X X X X X X 3D X PR5 X X
D12 SE2 ML4 ML4 X
X X X GL4 GL4 0 0 GL4 X X X X PR4 X X
D11 SE1 ML3 ML3 X
X X X GL3 GL3 1 1 GL3 X GL3 X X PR3
D10 SE0 ML2 ML2 X
X X X GL2 GL2 0 0 GL2 SL2 GL2 X X PR2
D9 ID9 ML1 ML1 X
X X X GL1 GL1 0 0 GL1 SL1 GL1 MIX X PR1
D8 ID8 ML0 ML0 X
X X X GL0 GL0 0 0 GL0 SL0 GL0 MS X PR0
D7 ID7 X X X
D6 ID6 X X X
D5 ID5 X X X
X X X X X X X X X X X X X
D4 ID4 MR4 MR4 MM4
PV3 GN4 GN4 GR4 GR4 0 0 GR4 X X X X X
D3 ID3 MR3 MR3 MM3
PV2 GN3 GN3 GR3 GR3 1 1 GR3 X GR3 X DP3 REF
D2 D1 ID2 ID1 MR2 MR1 MR2 MR1 MM2 MM1
PV2 GN2 GN2 GR2 GR2 0 0 GR2 SR2 GR2 X DP2 ANL PV0 GN1 GN1 GR1 GR1 0 0 GR1 SR1 GR1 X DP1 DAC
D0 Default ID0 6150h MR0 8000h MR0 8000h MM0 8000h
X GN0 GN0 GR0 GR0 0 0 GR0 SR0 GR0 X DP0 ADC VRA VRA 8000h 8008h 8008h 8808h 8808h 8808h 8808h 8808h 0000h 8000h 0000h 0000h 000Fh 0605h 0000h BB80h BB80h 2000h 0000h 0000h 0808h
X X X X X 20dB X X X X X X X X X X X X X X LPBK X X X X X
REV1 REV0 AMAP LDAC SDAC CDAC DSA1 DSA0 X SPCV X X X X SPSA1 SPSA0 SR11 SR10 SR9 SR8 SR11 SR10 SR9 SR8 L CC6 CC5 CC4 0 0 0 0 PSEL HSEN HSDT HPND GL3 GL2 GL1 GL0 SR7 SR6 SR7 SR6 CC3 CC2 0 0 AMEN I2S X X SR5 SR4 SR5 SR4 CC1 CC0 0 MPM ADCN ADCO DAC X GR4 X DEL0 MSK0 D4 S4 Rev4
VRM SPDIF DRA X SPDIF X SR3 SR3 PRE 0 HPF GR3 SR2 SR2 COPY 0 HS CMP GR2
SR15 SR14 SR15 SR14 V 0 0 0 AMUTE HSCP Mute X POLL PRP1 PNDN F7 T7 X X ADR2 PRP0 ADR2 F6 T6
SR13 SR12 SR13 SR12 1 0 0 0 PUEN MHPZ X X ADR1 RPR ADR1 F5 T5 GL4 X ADR0 PDEN ADR0 F4 T4
SR1 SR0 SR1 SR0 UDIB PRO 0 0 ASS1 ASS0 GR1 GR0
X X X X X X X COO CTC CR1 CR0 DEL3 DEL2 DEL1 PINV BSEN BINV WAIT PIL PHIZ MSK1 D11 D10 D9 D8 D7 D6 D5 F3 F2 F1 F0 S7 S6 S5 T3 T2 T1 T0 Rev7 Rev6 Rev5
HPB I2S64 X MONOEN 0000h SLEN SLT2 SLT1 SLT0 0006h PDD3 PDD2 PDD1 PDD0 0000h D3 D2 D1 D0 0000h S3 S2 S1 S0 574Dh Rev3 Rev2 Rev1 Rev0 4C05h
Table 23 Serial Interface Register Map Description
Note: 1. Default values of register 28h and 2Ah depend on whether the device is a primary or secondary, and whether SPDIF capability is enabled by pulling pin 44 SPEN high. The conditions shown are for a primary codec with SPDIF capability. 2. Register 5Ah is write only. When writing to this register all bits except MPM (bit 4) must be written as 0, otherwise device function can not be guaranteed.
w
PD Rev 4.0 December 2003 39
WM9705
Production Data
PEN DIGITISER OPERATION
The pen digitiser function comprises a 12 bit successive approximation ADC, with a multi-channel input multiplexor to select which signal to convert, and a switching matrix to control driving of signals to the resistive touchscreen plates. A finite state machine is provided in order to control and sequence conversion operations. A pen-down detection scheme is provided to allow detection of when the pen is in contact with the screen. This allows for the touchscreen to only be driven whilst the pen is down, saving on unnecessary power consumption. This minimises any degradation in audio performance that may occur due to the significant currents that flow through the on-chip screen drive switches. Figure 18 shows symbolically these component elements and their connectivity.
Ipress Rpu Prsw Pressure switch PENDET PDRES Vrswap Yswp Y+ Y+ Rscry XRpen Rscrx X+ X+ Rpusw Vrswyp Pen detect comparator
Vrswxp Vref+ switches Xswp ADC ip Mux
MXyp MXxp MXyn
Vref+ 12 bit op 12 bit SAR ADC BUSY
YYYswn
MXxn MXaux
Vref-
Vrswxn XVrswyn Xswn Vrswan PHONE PCBEEP AUXADC BMON AUX input MUX Vref- switches Pen Controller State machine and AC link interface ADC control
MASK
Switch control
Figure 18 Pen Digitiser Block Diagram
Yswp Y+ X+
Vrswyp
Xswp X+
Vrswxp
Rpen
MXxp A/D converter
Rpen
Y+
MXyp A/D converter
XYYswn
MXxn Vrswyn
YXXswn
MXyn Vrswxn
Figure 19 Y Position Conversion
Figure 20 X Position Conversion
w
PD Rev 4.0 December 2003 40
WM9705 TIMING OF PEN DIGITISER OPERATIONS
Production Data
Timing of pen digitiser operations is linked to the AC link frame timing. A single ADC conversion takes one frame to complete, including taking a sample, converting it, and passing it into the register ready to be read back. This therefore allows a maximum conversion rate of 48ks/s, but in practise to allow time for screen plates to settle etc, much lower rates of conversion are anticipated. The ADC is powered up only for the duration of each conversion, therefore power consumption is a linear function of the conversion rate chosen.
CONTROL OF PEN DIGITISER FUNCTIONS
Control of the digitiser functions is via control bits written into control registers via the AC link. The following table shows the name, function and location of the control bits for the pen digitser section of the WM9705. Address locations are chosen to avoid unexpected corruption of normal AC'97 audio codec operation, using mostly vendor specific addresses from the AC'97 adddress map.
Reg 76h 78h 7Ah
Name Digitizer control Digitizer control Pen Digitizer data
D15 POLL PRP1 PNDN
D14 ADR2 PRP0 ADR2
D13 ADR1 RPR ADR1
D12 ADR0 PDEN ADR0
D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Default COO CTC CR1 CR0 DEL3 DEL2 DEL1 DEL0 SLEN SLT2 SLT1 SLT0 0006h PINV BSEN BINV WAIT PIL PHIZ MSK1 MSK0 PDD3 PDD2 PDD1 PDD0 0000h D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 0000h
INDEX 76H - DIGITISER CONTROL WORD 1 - READ/WRITE REGISTER
BIT POLL ADR[2-0] COO CTC CR[1-0] DEL[3-0] SLEN SLT[2-0] LOCATION 15 14-12 11 10 9,8 7-4 3 2-0 FUNCTION Starts a single polled conversion (resets itself at completion) Sets the address of the single conversion in polled mode, or extra conversions in Coordinate or Continuous mode. See Table 24. Selects a co-ordinate set of conversions Starts continuous conversion operation Sets continuous conversion rate Sets the delay between screen being driven and X or Y sample being taken Slot enable bit; allows conversion results to be output onto chosen slot Slot select bits; choose which slot to output data results in
w
PD Rev 4.0 December 2003 41
WM9705
BIT PRP[1:0] LOCATION 15:14 FUNCTION
Production Data
INDEX 78H - DIGITISER CONTROL WORD 2 - READ/WRITE REGISTER
Pen digitiser power down bit control bits: 00 - Pen digitiser powered down, pen detect disabled, no wakeup on pen down (default) 01 - Pen digitiser powered off, pen detect enabled, wakeup on pen down enabled 10 - Pen digitiser powered off, pen detect enabled, no wakeup on pen down 11 - Pen digitiser powered up Enables PR4 reset on pen down wake up causes conversions and screen drives to stop when pen is not down Inverts sense of PENDET output: Default `0' causes PEN = `down' to give a `1' output BUSY flag enable. Outputs converter BUSY signal on pin 47. `1' = converter busy, goes low at end of conversion to indicate result available Invert sense of BUSY flag output WAIT bit; setting this bit causes conversion operations to halt when a result is about to be written to the data register 7Ah, if the last stored result has not yet been read. Conversions commence again once the result has been read Pressure current select (`0'=200uA, `1'=400uA) Sets PHONE and PCBEEP inputs to be High impedance by disconnecting them from mixer via an internal switch. Setting bit low opens the switch. Setting bit high closes the switch. Default setting is low. Selects what effect MASK input has: 00 = MASK pin ignored 01 = Mask pin is static; `hi' halts conversions 10 = Mask pin is edge sensitive; rising or falling edge delays conversions by DEL [3-0] 11 = Mask pin becomes a synchronise input; conversions happen after edge Pen detect comparator threshold 0 to Vmid in 15 steps; 0h = use zero power comparator with Vmid threshold 1 = Vmid/15 threshold 15 = Vmid threshold
RPR PDEN PINV BSEN BINV WAIT
13 12 11 10 9 8
PIL PHIZ
7 6
MSK[1:0]
5:4
PDD[3:0]
3:0
INDEX 7AH - DIGITISER DATA WORD OUTPUT - READ REGISTER ONLY
BIT PNDN ADR[2:0] D[11:0] LOCATION 15 14:12 11:0 FUNCTION Indicates whether Pen is Down; `1' = `Down' Conversion Address; Indicates which channel the following result is for ADC output result
READBACK OF PEN DIGITISER RESULTS
Readback of conversion results from either pen co-ordinate measurements, or auxiliary conversion, is via the AC link interface. conversions, pressure
Readback may be performed either by reading from the read only register 7Ah via the AC link, or by enabling SLOT mode (by writing SLEN = 1 in register 76h) where results are placed into the AC link data slots by WM9705, and sent back to the controller. The readback word contains the 12 bit data in the lsb locations, plus a 3 bit header in the next 3 bit locations, whose value corresponds to the channel that the data was converted from. Other bits are padded with zero values. Channel addressing is the same as the address requested for the conversion, as follows:
w
PD Rev 4.0 December 2003 42
WM9705
ADR[2-0] 000 001 010 011 100 101 110 111 none X- plate Y-plate Pressure Conversion BMON AUXADC PHONE PCBEEP CHANNEL
Production Data
Table 24 Conversion Address to Channel Map If BUSY flag is enabled (BSEN bit in reg 78h set `1') then the BUSY pin will remain high until the conversion in complete, whereby it will transition low. This signal is output onto pin 47, EAPD/BUSY where it may be observed by the controller if required as an interrupt. (Note that use of this BUSY flag clearly precludes use of the EAPD external amplifier power down bit, but as the WM9705 has integrated headphone amplifier with it's own power down bit PR6 in register 26h, this should not be a problem. If BSEN is not set, then EAPD operates as normal) If SLOT method is enabled (SLEN bit in register 76h is set `1') then the data is output into the chosen slot and the appropriate slot tag bit set. Choice of which slot the data is written into is made by setting bits SLT[2-0] in register 76h. The following table shows which slot versus [2-0] value. SLT[2-0] 000 001 010 011 100 101 110 5 6 7 8 9 10 11 OUTPUT SLOT FOR DIGITISER DATA
Table 25 Pen ADC Slot Select When the conversion result has been read, then another conversion may be commenced as required. In the event of another conversion being requested, then the stored result from the last conversion will be overwritten when the new conversion has been completed. However, if the WAIT bit is set in register 78h, then once a conversion is complete, the current conversion result may not be written into the results register, until the previous conversion result has been read. The sequence will halt at the finish of this current conversion, waiting for the results register to be cleared. Note that this does allow the controller to slow down the rate of conversions, so effectively determining the overall rate of conversion.
CONVERSION CONTROL
Control of ADC conversions, and screen driving functions, is by one of three methods:
* * *
Polling method Polled Co-ordinate method Continuous method
w
PD Rev 4.0 December 2003 43
WM9705
POLLING METHOD
Production Data
The polling method relies on the controller to instruct every operation, i.e. to send an instruction requesting every individual conversion specifically. A polled conversion is requested by writing a 1 to POLL bit 15 in register 76h, along with the address of the channel to be converted. The channel to convert is identified by a 3-bit tag word ADR[2-0] written to the Pen control register 76h. This tag has the same value as the value read back with the conversion result, thus identifying which channel the result is for, see Table 24. If ADD[2-0] is set to 0 then no conversion will take place and POLL will be reset. If the channel to convert is an X or Y pen channel, then the appropriate screen driver switch configuration is selected first, the screen allowed to settle for a time (selected by programming the value into the DELAY register, DEL[3-0] in register 76h) and then the screen sample taken and the conversion made. Figures A2 and A3 show the switch configurations for X and Y plate conversions. Once the conversion is complete, the result is written into the results register 7Ah
Single coordinate conversion with ADR = 000 (X and Y only) with delay set to 1 (2 frames)
SYNC
SDOUT
Write to 0x76 with 0x8810
EAPD/BUSY
external signals internal signals
POLL Screen Switch / Input Mux mode
delay = 2 frames X ADR = 001 - X measurement
delay = 2 frames ADR = 010 - Y measurement X
ADC MODE Pen Detect or Off PENDATA
DELAY
CONVERT
DELAY
CONVERT
Pen Detect or Off
X
X measurement data
Y measurement data
where it is available for readback.
Figure 21 Control of ADC conversions : Polling Method
CO-ORDINATE METHOD
Setting bit COO in register 76h puts the device into Co-ordinate conversion mode. Co-ordinate method of conversion instructs a sequence of conversions necessary to perform a pen co-ordinate determination. Most basically this requires an X and a Y conversion but may also include a pressure measurement. Writing to the POLL bit with COO bit in register 76h set initiates a set of co-ordinate conversions, the results of which are returned to the controller as soon as they are available. If pressure conversion, or an auxiliary conversion are also required as part of the sequence, this is instructed by writing the appropriate address into the ADR [2-0] bits of register 76h. (X and Y addresses do not need to be set in this case, as they are implied by the choice of co-ordinate method of operation). DEL[3-0] delays are applied as for polled operation to all conversions. Subsequent POLL operations will then return both X and Y conversion results, plus the auxiliary or pressure conversion result indicated by the value set in ADR[2-0]. Once a conversion is complete, the result is written into the results register 7Ah where it is available for readback. PD Rev 4.0 December 2003 44
w
WM9705
Production Data
Different types of polled conversion with delay set to 0 (1 frame) SYNC Poll = 1, Coord = 0, ADR = 001 ( 0x76 = 0x9000 ) = X Measurement SDOUT POLL Screen Switch / ADC mux mode ADC MODE
Write to 0x76 with 0x9000
X
ADR=1
DELAY
CONVERT
PENDATA Coord = 1, ADR = 011 ( 0x76 = 0xB800 ) = X, Y and Pressure SDOUT POLL Screen Switch / ADC mux mode ADC MODE
Write to 0x76 with 0xB800
X Measurement
X
ADR=1
ADR=2
ADR=3(1)1
ADR=3(2) 1
DELAY
CONVERT
DELAY
CONVERT
DELAY
CONVERT
DELAY
CONVERT
PENDATA
X Measurement
Y Measurement
Pressure Measurement
Coord = 1, ADR = 101 ( 0x76 = 0xD800 ) = X, Y and AUX SDOUT POLL Screen Switch / ADC mux mode ADC MODE
Write to 0x76 with 0xD800
X
ADR=1
ADR=2
ADR=5
DELAY
CONVERT
DELAY
CONVERT
DELAY
CONVERT
PENDATA
X Measurement
Y Measurement
AUX Measurement
Figure 22 Control of ADC Conversions : Polled Co-ordinate Method Note: The pressure measurement is the difference between the voltage values measured between the resistive plates in the screen. As two values have to be obtained before the calculation can take place, two data acquisition cycles are required as illustrated above.
w
PD Rev 4.0 December 2003 45
WM9705
CONTINUOUS METHOD
Production Data
The continuous method of conversion allows for an autonomous free running operation of the digitiser, converting pen X,Y results and either pressure or AUX channels continuously at a preset rate. This removes from the controller the overhead associated with instructing which conversion to do next etc. Continuous conversion is enabled by setting the CTC bit in register 76h. The rate of operation of the conversion sequence is set by writing bits CR0/1 into register 76h. These set the sequence rate as follows:
CR1 0 0 1 1
CR0 0 1 0 1
CONVERSION RATE 93.75Hz or 512 AC link frames 187.5Hz or 256 AC link frames 375Hz or 128 AC link frames 750Hz or 64 AC link frames
Table 26 Conversion Rate Note that this rate is the MAXIMUM that may be obtained. In practice the rate will typically be slower, if the number of conversions to be performed, and the delay applied by the DEL[3-0] bits to each conversion, add up to a time greater than the nominal period for conversion set above. Likewise, if conversions are halted by pen going up, or MASK being applied, then this conversion rate will not be met. If MSK[1,0] is set to 11, then the conversion rate becomes synchronised to the rate of application of edges to the MASK input. The CR[1,0] value is ignored. Conversions are performed after the edge on the MASK pin, delayed by the value set in the DEL [3-0] register. Normal operation will be to perform X,Y screen drives, and conversions, followed by a pressure or AUX conversion if requested by setting the appropriate address in the ADR[2-0] bits of register 76h. So long as the ADR[2-0] value remains set to auxiliary or pressure inputs, X,Y and the extra auxiliary conversions will be made in every cycle. Pen-down detection is performed after completion of each set of conversions and the output sent to the PENDET pin, and output in bit 15 of the data read-back word. If the PDEN bit is left at the default value `0', if pen-down is not detected, then the continuous conversion process including driving the screen, will continue anyway. If the PDEN bit is set to `1', and a pen-down is NOT detected, then the conversion process will come to a stop, until the pen is once more returned to the screen. DEL[3-0] delays are applied as for polled operation to all conversions. Once a conversion is complete, the result is written into the results register 7Ah where it is available for readback. Additionally the results may be output into a chosen SLOT by enabling slot readback bit SLEN in register 76h and selecting the desired slot by setting SLT[2-0].
w
PD Rev 4.0 December 2003 46
WM9705
Different types of continuous conversion with delay set to 0 (1 frames)
Production Data
CTC = 1, CC=11, Coord = 0, ADR = 001 ( 0x76 = 0x1700 ) = X Measurement every 64 AC Link Frames
SYNC Conversion 1 ADC Mode
DELAY CONVERT
64 Frames
Conversion 2
DELAY CONVERT
Pen Data
Conversion 1 result available
Conversion 2 result available
CTC = 1, CC=00, Coord = 1, ADR = 000 ( 0x76 = 0x0C00 ) = X and Y Measurement every 512 AC Link Frames SYNC Conversion 1 ADC Mode
DELAY CONVERT DELAY CONVERT
512 Frames
Conversion 2
DELAY CONVERT DELAY CONVERT
Pen Data
Conversion 1 - X result available
Conversion 1 - Y result available
Conversion 2 - X result available
Conversion 2 - Y result available
CTC = 1, CC=01, Coord = 1, ADR = 100 ( 0x76 = 0x4C01 ) = X, Y and BMON Measurement every 256 AC Link Frames SYNC Conversion 1 ADC Mode
DELAY CONVERT DELAY CONVERT DELAY CONVERT
Conversion 1
DELAY CONVERT DELAY CONVERT DELAY CONVERT
256 Frames
256 Frames
Pen Data
Conversion 1 - X result available
Conversion 1 - Y result available
Conversion 1 - BMON result available
Conversion 2 - X result available
Conversion 2 - Y result available
Conversion 2 - BMON result available
Figure 23 Control of ADC Conversions : Continuous Method
DELAY FUNCTION
In order to allow time for the plates to charge to a steady voltage when the screen drive switches are closed, a programmable delay may be applied which delays the sampling of the appropriate plate voltage by the ADC. This delay is at least one frame (1/48kHz) in duration, but may be increased by writing a value to the DEL[3-0] bits in register 76h. These set delays as follows:
DEL[3-0] 0 1 2 3 4 5 6 7 1 2 4 8 16 32 48 64
DELAY (FRAMES)
DELAY (uS) 20.8 41.7 83.3 166.7 333.3 666.7 1000 1333
DEL[3-0] 8 9 10 11 12 13 14 15 96
DELAY (FRAMES) 128 160 192 224 256 288 infinite
DELAY (uS) 1666 2000 2333 2666 3000 3333 3666 infinite
Table 27 Programmable Screen Drive Delay Note that code 15 is used as a special mode, where the plates are driven permanently on, the switch matrix setting controlled by the value selected by ADR[2-0]. Thus the plates may be permanently set to drive X screen, Y screen, pressure configuration, or the auxiliary input channel permanently connected to the ADC input. For further information please see the section on Auxiliary Conversions.
w
PD Rev 4.0 December 2003 47
WM9705
BUSY SIGNAL
Production Data
The BUSY signal is derived from the pen state machine and is an indication of the AUXADC being active on a conversion cycle. When an AUXADC conversion is requested BUSY will go high 61 BCLKs after the rising edge of SYNC in the frame that the conversion was requested. BUSY will remain high until the data from the conversion is written into register 7A as the state machine sees the register write as the last stage of the conversion. During a conversion that does not have the WAIT bit set, the BUSY negative pulse between conversions (signifying data written to Reg 7Ah) lasts 3 BCLKs and starts 11 BCLKs before the next rising SYNC edge. At the end of a conversion (or set of conversions) BUSY goes low 11 BCLKs before SYNC rises. The WAIT bit instructs the device to wait until the previous conversion result has been read from register 7Ah before overwriting it. Without this bit set conversion results are not held. During a multiple conversion cycle in which WAIT is set the busy signal may operate differently. If the device it set to perform 3 simultaneous conversions with WAIT set the timing of busy is dependant on when the results are read from register 7A. If at the end of conversion 2 the result from conversion 1 has not been read from the register the conversion sequence can not complete. In this case BUSY will remain high until 61 BCLKs after the rising SYNC edge at the beginning of the frame in which register 7A was read. However if the result is read from register 7A before the end of conversion 2 the busy signal will operate as described in the paragraph above. In the case of single conversions with WAIT set the operation of BUSY would be the same as that described above if the data was not read from Reg 7Ah before the next conversion requested had completed.
PRESSURE MEASUREMENT
Pen pressure is implied by determining the resistance between the two plates. Pressure measurements are sometimes used to determine whether the pen is in contact with the screen. However in this system the pen-down detect method is a far less power hungry way of determining whether the pen is `down' as it does not require continuous driving of the screen and ADC conversions. This has the supplemental benefit of minimising audio signal interference. Pen pressure measurements may be made if required, perhaps for reasons other than simply determining pen-down. This is done by injecting a known current into one end of one of the two plates (Y+), and grounding one end of the other plate (X-). Then the voltage at the other two plate terminals is converted (Y- and X+), the difference being a direct measure of the injected current value multiplied by the Pen contact resistance. Figure A4 shows this schematically. Requesting a pressure measurement automatically initiates a pair of conversions, the difference in conversion values being returned as the pressure measurement. Delay between switching the appropriate screen and ADC mux switches, and performing the conversions, is set in the DEL[30] registers.
Ipress Yswp Y+ X+ MXyp 1st conv A/D converter Y- MXyn 2nd conv XXswn Vrswxn Vrswan Prsw Vrswyp Vrswap
Rpen
Figure 24 Pressure Measurement
w
PD Rev 4.0 December 2003 48
WM9705 MASK FUNCTION
Production Data
It is anticipated that sources of glitch noise such as LCD `invert' signals will likely be picked up by the touchscreen plates and affect measurement accuracy. In order to minimise this effect, a signal may be applied to the MASK pin, which depending on the setting of the MSK[1-0] bits in register 78h, will delay the start of sampling of any input to the ADC. The behaviour of this delay is a function of the value set in the MSK[1-0] bits of register 78h and is described below:
MSK[1-0] 00 01 10
EFFECT OF SIGNAL ON MASK PIN Mask has no effect on conversions Static; `hi' on MASK pin stops conversions, `lo' has no effect. Edge triggered; rising or falling edge on MASK pin delays conversions by an amount set in the DEL[3-0] register. Conversions are asynchronous to the MASK signal. Synchronous mode; conversions wait until rising or falling edge on MASK initiates cycle; screen starts to be driven when the edge arrives, the conversion sample being taken a period set by DEL[3-0] after the edge.
11
Table 28 Mask Control
PEN-DOWN DETECTION
Pen down detection is an important feature of the pen digitiser function; it allows screen driving and conversion operations to be suspended whilst the pen is not in contact with the screen so conserving power and minimising audio signal interference due to screen currents. Pen down detection is performed by connecting an external or internal Pen Down Pull-up resistor (external resistor is connected between pin 29 and AVdd) to the Y+ terminal of the screen, grounding the X- terminal, and connecting the Y+ terminal to a comparator. This comparator has a threshold which lies midway between the ground and AVdd voltages. When the pen is applied to the screen, the resistance between the plates falls, pulling down the voltage on the Y plate and hence the Y+ terminal voltage. When this resistance falls enough, the comparator is triggered, so detecting that the `pen is down'. The threshold of this Pen detection function is set at about midrail. Varying the pressure on the pen, hence the pen resistance between the shorted plates, will cause the voltage on the pulled-up plate to vary. The value of the external pull up resistor may be selected, so allowing the sensitivity of the pen-down detect threshold to be adjusted. This allows the user more flexibility in tailoring the pen detect threshold to different screen types. A `zero power' comparator (effectively a gate) is used as the comparator, which has a fairly crudely set threshold, set at about mid supply. The output of this comparator is applied to the PENDET pin, and also into the finite state machine controlling the conversion and screen drive operations. Depending on the state of the PDEN bit in register 78h, this signal may be used to halt conversion operations whilst pen is `up'. The PENDET pin can be active high or low depending on the state of PINV. The default state of PINV is a 0 which means PENDET is active high. If the PDEN bit has not been set, then the state of the pen down detector output enables conversions and screen drives only when the pen is detected as `down'. If PDEN bit is set, then conversions and screen drives will continue whether pen is detected as up or down. This allows, for example, for AUX channels to be converted whilst the pen is off the screen. In order to provide more control over the sensitivity of the pen down detect threshold, an alternative active comparator circuit is provided, along with a 4 bit DAC which is used to adjust the comparator reference input voltage between near 0Volts and midrail. This allows lower pen resistance to be detected, without the need to use very low external pull-up resistor values which would otherwise be needed and which would consume large currents. When value 0h is written to the pen detect dac register bits PDD[3-0] in register 78h, this extra comparator is powered off and the zero power comparator used. When other values are written to this register, then the comparator is enabled, and thresholds from near 0V to midrail are set as below in Table 29.
w
PD Rev 4.0 December 2003 49
WM9705
Production Data
PDD[3-0] 0000 0001 0010 0011 0100 0101 0110 0111
PEN DETECT THRESHOLD Use zero power comp. Vmid/15 2Vmid/15 3Vmid/15 4Vmid/15 5Vmid/15 6Vmid/15 7Vmid/15
PDD[3-0] 1000 1001 1010 1011 1100 1101 1110 1111
PEN DETECT THRESHOLD 8Vmid/15 9Vmid/15 10Vmid/15 11Vmid/15 12Vmid/15 13Vmid/15 14Vmid/15 Vmid
Table 29 Pen Detect Comparator Threshold
Figure 25 shows the pen detection function schematically.
Rpu Rpusw Yswp
zero power comparator
mux
PENDET
X+
Y+ sel
Pen detect threshold setting DAC
Rpen 4 bit
precision comparator
XXswn
Y-
Figure 25 Pen Detection Configuration
STANDBY OPERATION AND WAKE-UP
WM9705 allows for complete zero power standby operation, and wake-up-on-pen-down. That is, all features of the device can be put into zero quiescent current standby, including the digital interfaces, and the device will wait consuming near zero power until it is re-awoken via pen down event or via activity on the AC link. The AC link interface specification allows for standby operation, with all clocks stopped and the oscillator powered down, (all PR bits set). From this state, either the controller or the Codec can re-awaken the AC link. This feature is used by WM9705 to allow the standby operation, and wake on pen down function. Once in standby, (all PR bits set and Pen digitiser power down control bits PRP{1:0] in reg 78h set to), the device awaits detection of pen down. Once this occurs, PRP[1] is set to active (1) and the pen digitiser wakes up, toggles the PENDET pin, and wakes the AC link by toggling the SDATAIN line. It is then up to the link controller how to respond. It will then toggle the SYNC signal, which causes the codec to wake up the AC link by re-setting PR4, waking the oscillator and starting to send BITCLKs. If RPR is set then pen down will also automatically reset PR4 and wake up the codec. If the PRP[1:0] is set to 10, then the device is NOT woken on pen down detect, but the PENDET flag is toggled on pin 46 when the pen is detected as `down'. The controller may then wake up the AC link and hence set PRP[1] bit if it so wishes. PD Rev 4.0 December 2003 50
w
WM9705
Production Data Setting PRP[1:0] to 00 will power off the digitiser and and pen down detection. PENDET will not toggle on pen down. Provision of the PENDET flag as well as the the AC link wake up procedure allows controllers that might not be full AC link compliant to still operate in this way, by monitoring the change in state of PENDET and using that signal as a wake-up flag.
AUXILIARY CONVERSIONS
As previously described, auxiliary conversion may be performed by setting the ADR[2-0] address to the chosen input pin. Two completely dedicated input pins, AUXADC and BMON, and 2 shared inputs (PHONE, PCBEEP) may be selected as inputs to the ADC. The PHONE and PCBEEP inputs are normally still available as regular analogue inputs to the mixer path, and as such present a typical 100k input impedance (with respect to mid-rail). However, in the event that these analogue inputs are not required, and there is a need to use these inputs as high impedance auxiliary inputs, then setting bit 6, PHIZ, in register 78h disconnects the internal PHONE and PCBEEP paths, so making these inputs into high impedance ADC inputs only. The signal paths from PHONE or PCBEEP to the MIXER are disconnected in this mode. Inputs to the AUXADC input should never exceed supply rails. The ADC uses the AVDD1 and AGND1 supplies as it's references, therefore conversions of AUXADC or BMON inputs are ratioed to these supplies; if they are inaccurate then the conversion may be inaccurate in absolute values. If co-ordinate (COO set) or continuous (CTC set) conversion modes are chosen, then auxiliary conversions are performed amongst the cycle of screen drives and conversions. In POLL (POLL set) mode, single auxiliary conversions may be performed. This cycle may be repeated to allow relatively high conversion rates to be applied to a single channel if required. In this case, setting the DEL[3-0] value to 15, and the ADR[2-0] value to the required channel will permanently connect that channel input to the ADC input. In this way maximum cycle time for conversion may be achieved, by instructing POLL and reading the ADC result on alternate AC link frames. This gives a maximum conversion rate of 24k samples per second from 1 channel. Alternatively continuous mode (CTC = `1') may be used to automatically generate conversion samples a the highest rate. The conversion rate control bits CTR[1-0] will limit this rate unless DEL[3-0] is set to 15. Then CTR[1-0] sets conversion rates of 1, 2, 4, 6 frames per sample. In this case up to one conversion is made per AC link frame, giving sample rates of 8, 12, 24 or 48ks/s. It is recommended that in this case the SLOT method of transferring data is used. Inputs to the BMON battery monitoring input are allowed to be more positive than the AVdd supply rail, up to a maximum of 6.5Volts (total). This allows a battery of voltage greater than the AVdd supply to be monitored by the ADC without need for an external resistive divider. An internal divide by three consisting of a 20k and a 10k resistor in series, is switched onto the BMON pin whenever a conversion on this input is requested. Therefore current is consumed from the BMON input during the battery monitoring conversion process, but not at any other time. A series switch disconnects the divider from the negative internal supply when conversions are not being requested. Because of the internal divide by 3, inputs to the BMON pin are therefore converted with a digital output gain 1/3rd that of the other AUXADC input The input impedance of the BMON input is 30k to ground WHEN the ADC is sampling, or hi-Z when it's not. When a BMON sample is requested the ADC samples the battery for a minimum of two frames. Inherent in this conversion is the delay state, set in register 7h bits 4-7 (DEL [3:0]), the lowest value of this delay is 0 which will introduce a delay of one frame, thus the minimum number of 2 frames for a conversion. If the BMON conversion is part of a set of conversions the delay state set for the series of conversions will be inherited by the BMON conversion. The minimum time the battery can see the 30k is 512 BCLKs or 41.6 us.
Number _ of _ frames _ between _ samples x 30000 2 In order to have an equivalent resistance of greater than 1M the battery should be sampled no more than once every 67 frames. Effective_ Input _ R =
w
PD Rev 4.0 December 2003 51
WM9705
Production Data
RECOMMENDED EXTERNAL COMPONENTS
0.1 uF
1 DVDD
10 uF 0.1 uF
DVDD1 DVDD2
DGND1 DGND2 AGND1 AGND2 HPGND
4 7 GND 26 42 40 AGND
9
+
0.1 uF
AVDD
10 uF
25 AVDD1 38 AVDD2 5 6 SDATAOUT BITCLK SDATAIN SYNC RESETB PCBEEP PHONE X+ / AUXL
AC-LINK
+
0.1 uF
8 10
LINEOUTL LINEOUTR MONOOUT HPOUTL HPOUTR
35 36 37 39 41
+ 2.2 uF + 2.2 uF + 2.2 uF + 220 uF + 220 uF
Y+
1uF 1uF
11 12 13 14
X-
TouchScreen
X+
1uF 1uF
15
Y-
1uF 1uF 1uF 1uF 1uF
MASTER MODE (OPEN) SLAVE MODE (CLOSED)
X- / AUXR 16 Y+ / VIDL 17 Y- / VIDR 18 CDL 19 CDGND 20 CDR 21 MIC1 22 MIC2 23 LINEINL 24 LINEINR 45 CIDO
PENDET MASK / LRC SPEN / I2S EAPD / BUSY
46 43 44 47
WM9705
SPDIF VREF VREFOUT CAP2
48 27 28 32 +
0.1 uF 10 uF 10 uF + 0.1 uF
+
0.1 uF 10 uF
AGND
30
AUXADC BMON PDRES XTLIN 2
22 pF
AGND CX3D1 CX3D2 XTLOUT AGND 3
XT
AGND
Direct battery measurement (6.5V max) 31 AVDD 29
100 k
33 34
0.1 uF 0.047 uF
24.576 MHz
22 pF
DGND
Figure 26 External Components Diagram
w
PD Rev 4.0 December 2003 52
WM9705
Production Data
PACKAGE DIMENSIONS - TQFP
FT: 48 PIN TQFP ( 7 x 7 x 1.0 mm) DM004.C
b
e
25
36
37
24
E1
E
48
13
1
12
c
D1 D
L
A A2
A1 -Cccc C
SEATING PLANE
Symbols A A1 A2 b c D D1 E E1 e L ccc REF:
Dimensions (mm) MIN NOM MAX --------1.20 0.05 ----0.15 0.95 1.00 1.05 0.17 0.22 0.27 0.09 ----0.20 9.00 BSC 7.00 BSC 9.00 BSC 7.00 BSC 0.50 BSC 0.45 0.60 0.75 o o o 0 3.5 7 Tolerances of Form and Position 0.08 JEDEC.95, MS-026
NOTES: A. ALL LINEAR DIMENSIONS ARE IN MILLIMETERS. B. THIS DRAWING IS SUBJECT TO CHANGE WITHOUT NOTICE. C. BODY DIMENSIONS DO NOT INCLUDE MOLD FLASH OR PROTRUSION, NOT TO EXCEED 0.25MM. D. MEETS JEDEC.95 MS-026, VARIATION = ABC. REFER TO THIS SPECIFICATION FOR FURTHER DETAILS.
w
PD Rev 4.0 December 2003 53
WM9705
Production Data
PACKAGE DIMENSIONS - QFN
FL: 48 PIN QFN PLASTIC PACKAGE 7 X 7 X 0.9 mm BODY, 0.50 mm LEAD PITCH
D2 D2/2 37 48 L 36 1 INDEX AREA (D/2 X E/2)
DM029.C
SEE DETAIL 1
D
E2/2
E2 SEE DETAIL 2
E
25
12 2X b 2X aaa C aaa C
24 e
13
TOP VIEW
ccc C (A3) A 0.08 C
C
SEATING PLANE
A1
DETAIL 1
DETAIL 2
1
DETAIL 3
W T (A3) H b Exposed lead G 0.35mm 45 degrees
Datum
Terminal tip e/2
e R
Half etch tie bar
DETAIL 3
Symbols A A1 A3 b D D2 E E2 e G H L T W aaa bbb ccc REF
Dimensions (mm) NOM MAX 0.90 1.00 0.05 0.02 0.20 REF 0.18 0.25 0.30 7.00 BSC 5.00 5.15 5.25 7.00 BSC 5.00 5.15 5.25 0.5 BSC 0.213 0.1 0.50 0.30 0.4 0.1 0.2 Tolerances of Form and Position 0.15 0.10 0.10 MIN 0.80 0
NOTE
1
JEDEC, MO-220, VARIATION VKKD-2
NOTES: 1. DIMENSION b APPLIED TO METALLIZED TERMINAL AND IS MEASURED BETWEEN 0.15 mm AND 0.30 mm FROM TERMINAL TIP. 2. ALL DIMENSIONS ARE IN MILLIMETRES 3. THE TERMINAL #1 IDENTIFIER AND TERMINAL NUMBERING CONVENTION SHALL CONFORM TO JESD 95-1 SPP-002. 4. COPLANARITY APPLIES TO THE EXPOSED HEAT SINK SLUG AS WELL AS THE TERMINALS. 5. THIS DRAWING IS SUBJECT TO CHANGE WITHOUT NOTICE.
w
PD Rev 4.0 December 2003 54
WM9705
Production Data
IMPORTANT NOTICE
Wolfson Microelectronics plc (WM) reserve the right to make changes to their products or to discontinue any product or service without notice, and advise customers to obtain the latest version of relevant information to verify, before placing orders, that information being relied on is current. All products are sold subject to the WM terms and conditions of sale supplied at the time of order acknowledgement, including those pertaining to warranty, patent infringement, and limitation of liability.
WM warrants performance of its products to the specifications applicable at the time of sale in accordance with WM's standard warranty. Testing and other quality control techniques are utilised to the extent WM deems necessary to support this warranty. Specific testing of all parameters of each device is not necessarily performed, except those mandated by government requirements.
In order to minimise risks associated with customer applications, adequate design and operating safeguards must be used by the customer to minimise inherent or procedural hazards. Wolfson products are not authorised for use as critical components in life support devices or systems without the express written approval of an officer of the company. Life support devices or systems are devices or systems that are intended for surgical implant into the body, or support or sustain life, and whose failure to perform when properly used in accordance with instructions for use provided, can be reasonably expected to result in a significant injury to the user. A critical component is any component of a life support device or system whose failure to perform can be reasonably expected to cause the failure of the life support device or system, or to affect its safety or effectiveness.
WM assumes no liability for applications assistance or customer product design. WM does not warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other intellectual property right of WM covering or relating to any combination, machine, or process in which such products or services might be or are used. WM's publication of information regarding any third party's products or services does not constitute WM's approval, license, warranty or endorsement thereof.
Reproduction of information from the WM web site or datasheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations and notices. Representation or reproduction of this information with alteration voids all warranties provided for an associated WM product or service, is an unfair and deceptive business practice, and WM is not responsible nor liable for any such use.
Resale of WM's products or services with statements different from or beyond the parameters stated by WM for that product or service voids all express and any implied warranties for the associated WM product or service, is an unfair and deceptive business practice, and WM is not responsible nor liable for any such use.
ADDRESS:
Wolfson Microelectronics plc 20 Bernard Terrace Edinburgh EH8 9NX United Kingdom
Tel :: +44 (0)131 272 7000 Fax :: +44 (0)131 272 7001 Email :: sales@wolfsonmicro.com
w
PD Rev 4.0 December 2003 55


▲Up To Search▲   

 
Price & Availability of XWM9705EFLRV

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X